diff options
author | vng <viktor.govako@gmail.com> | 2012-06-09 21:25:41 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:39:31 +0300 |
commit | 3af0e02f4cd1c6b12341b892a56576a65d69c788 (patch) | |
tree | 5e1d346974d94f9502de00468df26841cafa48cf /base | |
parent | eedfce0f8367c38e0b95cae0e12177c3fc1fda71 (diff) |
Add DebugPrint for array.
Diffstat (limited to 'base')
-rw-r--r-- | base/internal/message.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/base/internal/message.hpp b/base/internal/message.hpp index 726d0860b4..84c297be88 100644 --- a/base/internal/message.hpp +++ b/base/internal/message.hpp @@ -72,6 +72,11 @@ namespace my } } +template <typename T, size_t N> inline string DebugPrint(T (&arr) [N]) +{ + return ::my::impl::DebugPrintSequence(arr, arr + N); +} + template <typename T> inline string DebugPrint(vector<T> const & v) { return ::my::impl::DebugPrintSequence(v.begin(), v.end()); |