diff --git a/base/internal/message.hpp b/base/internal/message.hpp index aac209d580..a5b55df979 100644 --- a/base/internal/message.hpp +++ b/base/internal/message.hpp @@ -30,7 +30,6 @@ inline std::string DebugPrint(char t); template inline std::string DebugPrint(std::pair const & p); template inline std::string DebugPrint(std::list const & v); -template inline std::string DebugPrint(boost::circular_buffer const & v); template inline std::string DebugPrint(std::vector const & v); template > inline std::string DebugPrint(std::set const & v); template > inline std::string DebugPrint(std::multiset const & v); @@ -42,8 +41,16 @@ template , class Pred = std::equal_to const & v); template , class Pred = std::equal_to> inline std::string DebugPrint(std::unordered_map const & v); + +template inline std::string DebugPrint(boost::circular_buffer const & v); //@} +template inline std::string DebugPrint(T const & t) +{ + std::ostringstream out; + out << t; + return out.str(); +} inline std::string DebugPrint(char const * t) { @@ -122,11 +129,6 @@ template inline std::string DebugPrint(std::list const & v) return ::my::impl::DebugPrintSequence(v.begin(), v.end()); } -template inline std::string DebugPrint(boost::circular_buffer const & v) -{ - return ::my::impl::DebugPrintSequence(v.begin(), v.end()); -} - template inline std::string DebugPrint(std::set const & v) { return ::my::impl::DebugPrintSequence(v.begin(), v.end()); @@ -159,13 +161,6 @@ inline std::string DebugPrint(std::unordered_map const & v) return ::my::impl::DebugPrintSequence(v.begin(), v.end()); } -template inline std::string DebugPrint(T const & t) -{ - std::ostringstream out; - out << t; - return out.str(); -} - template inline std::string DebugPrint(std::unique_ptr const & v) { std::ostringstream out; @@ -176,6 +171,11 @@ template inline std::string DebugPrint(std::unique_ptr const & v return out.str(); } +template inline std::string DebugPrint(boost::circular_buffer const & v) +{ + return ::my::impl::DebugPrintSequence(v.begin(), v.end()); +} + namespace my { namespace impl