Closed ecorm closed 7 years ago
The same behavior happens with snprintf
. Other alternatives are std::ostringstream
and boost::lexical_cast
.
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
std::to_string
does not seem to handle 64-bit integers properly when compiled forarm-linux-gnueabihf
. Inwamp::internal::EncodeJson
, change theoperator()
overloads for integers so that they avoid usingstd::to_string
.Also check other uses of
std::to_string
and replace as necessary.