Skip to content

Commit

Permalink
construct std::stringstream from ""
Browse files Browse the repository at this point in the history
  • Loading branch information
kalmarek authored and barche committed Sep 4, 2020
1 parent cf8bf59 commit 771c844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/jlcxx/type_conversion.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ inline CppT* extract_pointer_nonull(const WrappedCppPtr& p)
{
if(p.voidptr == nullptr)
{
std::stringstream errorstr;
std::stringstream errorstr("");
errorstr << "C++ object of type " << typeid(CppT).name() << " was deleted";
throw std::runtime_error(errorstr.str());
}
Expand Down

0 comments on commit 771c844

Please sign in to comment.