ecorm / cppwamp

C++ client library for the WAMP protocol.
Boost Software License 1.0
35 stars 9 forks source link

EncodeJson fails for integers under ARM #111

Closed ecorm closed 7 years ago

ecorm commented 7 years ago

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 7 years ago

The same behavior happens with snprintf. Other alternatives are std::ostringstream and boost::lexical_cast.

ecorm commented 7 years ago

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