Skip to content

Commit

Permalink
Fix obtaining raw string_t pointer from temporary
Browse files Browse the repository at this point in the history
  • Loading branch information
Senthil committed Mar 9, 2016
1 parent 3070ca2 commit 0d615a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Release/src/json/json_parsing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ void CreateException(const Token &tk, const utility::string_t &message)
{
utility::ostringstream_t os;
os << _XPLATSTR("* Line ") << tk.start.m_line << _XPLATSTR(", Column ") << tk.start.m_column << _XPLATSTR(" Syntax error: ") << message;
throw web::json::json_exception(os.str().c_str());
utility::string_t osStr = os.str();
throw web::json::json_exception(osStr.c_str());
}

template <typename Token>
Expand Down

0 comments on commit 0d615a1

Please sign in to comment.