Get rid of to_string to be more portable in older compilers
authorEduardo Ramos Testillano <eduardo.ramos.testillano@ericsson.com>
Mon, 6 Apr 2015 15:44:51 +0000 (17:44 +0200)
committerEduardo Ramos Testillano <eduardo.ramos.testillano@ericsson.com>
Mon, 6 Apr 2015 15:44:51 +0000 (17:44 +0200)
example/diameter/pcapDecoder/main.cpp

index d296a40..672c619 100644 (file)
@@ -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: