diff options
author | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2018-04-11 14:12:24 +0300 |
---|---|---|
committer | Tatiana Yan <tatiana.kondakova@gmail.com> | 2018-04-11 14:47:31 +0300 |
commit | c98926252d75f25753b17a9a93c6fdd671c3bd04 (patch) | |
tree | 33cffe5bce5b641480dfc278b81d7894409cc6a3 /base | |
parent | 9c0617335c101f2a9b43e789e9531e20996a8263 (diff) |
Review fixes.
Diffstat (limited to 'base')
-rw-r--r-- | base/internal/message.hpp | 26 |
1 files changed, 13 insertions, 13 deletions
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 <typename U, typename V> inline std::string DebugPrint(std::pair<U, V> const & p); template <typename T> inline std::string DebugPrint(std::list<T> const & v); -template <typename T> inline std::string DebugPrint(boost::circular_buffer<T> const & v); template <typename T> inline std::string DebugPrint(std::vector<T> const & v); template <typename T, typename C = std::less<T>> inline std::string DebugPrint(std::set<T, C> const & v); template <typename T, typename C = std::less<T>> inline std::string DebugPrint(std::multiset<T, C> const & v); @@ -42,8 +41,16 @@ template <class Key, class Hash = std::hash<Key>, class Pred = std::equal_to<Key inline std::string DebugPrint(std::unordered_set<Key, Hash, Pred> const & v); template <class Key, class T, class Hash = std::hash<Key>, class Pred = std::equal_to<Key>> inline std::string DebugPrint(std::unordered_map<Key, T, Hash, Pred> const & v); + +template <typename T> inline std::string DebugPrint(boost::circular_buffer<T> const & v); //@} +template <typename T> 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 <typename T> inline std::string DebugPrint(std::list<T> const & v) return ::my::impl::DebugPrintSequence(v.begin(), v.end()); } -template <typename T> inline std::string DebugPrint(boost::circular_buffer<T> const & v) -{ - return ::my::impl::DebugPrintSequence(v.begin(), v.end()); -} - template <typename T, typename C> inline std::string DebugPrint(std::set<T, C> const & v) { return ::my::impl::DebugPrintSequence(v.begin(), v.end()); @@ -159,13 +161,6 @@ inline std::string DebugPrint(std::unordered_map<Key, T, Hash, Pred> const & v) return ::my::impl::DebugPrintSequence(v.begin(), v.end()); } -template <typename T> inline std::string DebugPrint(T const & t) -{ - std::ostringstream out; - out << t; - return out.str(); -} - template <typename T> inline std::string DebugPrint(std::unique_ptr<T> const & v) { std::ostringstream out; @@ -176,6 +171,11 @@ template <typename T> inline std::string DebugPrint(std::unique_ptr<T> const & v return out.str(); } +template <typename T> inline std::string DebugPrint(boost::circular_buffer<T> const & v) +{ + return ::my::impl::DebugPrintSequence(v.begin(), v.end()); +} + namespace my { namespace impl |