EncodeJson fails for integers under ARM
ecorm opened this issue · 2 comments
ecorm commented
std::to_string
does not seem to handle 64-bit integers properly when compiled for arm-linux-gnueabihf
. In wamp::internal::EncodeJson
, change the operator()
overloads for integers so that they avoid using std::to_string
.
Also check other uses of std::to_string
and replace as necessary.
ecorm commented
The same behavior happens with snprintf
. Other alternatives are std::ostringstream
and boost::lexical_cast
.
ecorm commented
This bug was caused by Boost.Context in Boost version 1.63.0, and has been fixed in Boost 1.64.0. See https://svn.boost.org/trac/boost/ticket/12948