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:
authorvng <viktor.govako@gmail.com>2012-06-09 21:25:41 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:39:31 +0300
commit3af0e02f4cd1c6b12341b892a56576a65d69c788 (patch)
tree5e1d346974d94f9502de00468df26841cafa48cf /base
parenteedfce0f8367c38e0b95cae0e12177c3fc1fda71 (diff)
Add DebugPrint for array.
Diffstat (limited to 'base')
-rw-r--r--base/internal/message.hpp5
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());