From 1ce160895d247c3fed86a42645c378ca1b920ef3 Mon Sep 17 00:00:00 2001 From: Eduardo Ramos Testillano Date: Mon, 6 Apr 2015 17:44:51 +0200 Subject: [PATCH] Get rid of to_string to be more portable in older compilers --- example/diameter/pcapDecoder/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: -- 2.20.1