Removed sstream from can_io

This commit is contained in:
Pavel Kirienko
2014-04-10 12:27:05 +04:00
parent 9849a6ce22
commit b586897948
+8 -5
View File
@@ -4,7 +4,7 @@
*/
#include <algorithm>
#include <sstream>
#include <string>
#include <cassert>
#include <limits>
#include <uavcan/transport/can_io.hpp>
@@ -17,10 +17,13 @@ namespace uavcan
*/
std::string CanRxFrame::toString(StringRepresentation mode) const
{
std::ostringstream os;
os << CanFrame::toString(mode)
<< " ts_m=" << ts_mono << " ts_utc=" << ts_utc << " iface=" << int(iface_index);
return os.str();
std::string out = CanFrame::toString(mode);
out.reserve(128);
out += " ts_m=" + ts_mono.toString();
out += " ts_utc=" + ts_utc.toString();
out += " iface=";
out += '0' + iface_index;
return out;
}
/*