From 2d13a5fd79e353e1fa2cf7d6d08de2cd89373fb2 Mon Sep 17 00:00:00 2001 From: Sergey Yershov Date: Tue, 21 Jul 2015 18:25:40 +0300 Subject: [PATCH] Add DebugPrint for array --- base/internal/message.hpp | 6 ++++++ 1 file changed, 6 insertions(+) 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 inline string DebugPrint(T (&arr) [N]) return ::my::impl::DebugPrintSequence(arr, arr + N); } +template inline string DebugPrint(array const & v) +{ + return ::my::impl::DebugPrintSequence(v.begin(), v.end()); +} + template inline string DebugPrint(vector const & v) { return ::my::impl::DebugPrintSequence(v.begin(), v.end());