From: Eduardo Ramos Testillano Date: Mon, 6 Apr 2015 15:44:51 +0000 (+0200) Subject: Get rid of to_string to be more portable in older compilers X-Git-Tag: REFACTORING_TESTING_LIBRARY~182 X-Git-Url: https://git.teslayout.com/public/public/public/?a=commitdiff_plain;h=1ce160895d247c3fed86a42645c378ca1b920ef3;p=anna.git Get rid of to_string to be more portable in older compilers --- diff --git a/example/diameter/pcapDecoder/main.cpp b/example/diameter/pcapDecoder/main.cpp index d296a40..672c619 100644 --- a/example/diameter/pcapDecoder/main.cpp +++ b/example/diameter/pcapDecoder/main.cpp @@ -489,8 +489,8 @@ int main(int argc, char **argv) { << "===================================================================================================" << std::endl; out << "Date: " << ts_str << std::endl; - out << "Timestamp: " << std::to_string(ts) << "." - << std::to_string(tsu) << std::endl; + out << "Timestamp: " << anna::functions::asString((int)ts) << "." + << anna::functions::asString((int)tsu) << std::endl; out << "Origin IP: " << (it->second).getSourceIP() << std::endl; out << "Destination IP: " << (it->second).getDestinationIP() << std::endl; // decode hex string: