Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorSergey Yershov <yershov@corp.mail.ru>2015-07-21 18:25:40 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:58:22 +0300
commit2d13a5fd79e353e1fa2cf7d6d08de2cd89373fb2 (patch)
tree0eab84daadabf925aaff36dbff9ddd87f707a514 /base
parent3f2074401b22bce2aaba17f4672aae77b3fa549f (diff)
Add DebugPrint for array
Diffstat (limited to 'base')
-rw-r--r--base/internal/message.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/base/internal/message.hpp b/base/internal/message.hpp
index 9e61de2032..969cba34aa 100644
--- a/base/internal/message.hpp
+++ b/base/internal/message.hpp
@@ -1,4 +1,5 @@
#pragma once
+#include "std/array.hpp"
#include "std/iterator.hpp"
#include "std/list.hpp"
#include "std/map.hpp"
@@ -78,6 +79,11 @@ template <typename T, size_t N> inline string DebugPrint(T (&arr) [N])
return ::my::impl::DebugPrintSequence(arr, arr + N);
}
+template <typename T, size_t N> inline string DebugPrint(array<T, N> const & v)
+{
+ return ::my::impl::DebugPrintSequence(v.begin(), v.end());
+}
+
template <typename T> inline string DebugPrint(vector<T> const & v)
{
return ::my::impl::DebugPrintSequence(v.begin(), v.end());