From 3af0e02f4cd1c6b12341b892a56576a65d69c788 Mon Sep 17 00:00:00 2001 From: vng Date: Sat, 9 Jun 2012 10:25:41 -0700 Subject: [PATCH] Add DebugPrint for array. --- base/internal/message.hpp | 5 +++++ 1 file changed, 5 insertions(+) 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 inline string DebugPrint(T (&arr) [N]) +{ + return ::my::impl::DebugPrintSequence(arr, arr + N); +} + template inline string DebugPrint(vector const & v) { return ::my::impl::DebugPrintSequence(v.begin(), v.end());