From 9ee8c0194e563d6c344f3a3db058edca76b1b8a8 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sun, 29 Sep 2019 18:05:20 +1000 Subject: [PATCH] StateWrapper: Add std::array overload --- src/common/state_wrapper.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/common/state_wrapper.h b/src/common/state_wrapper.h index c1e26f23b..af5d91b90 100644 --- a/src/common/state_wrapper.h +++ b/src/common/state_wrapper.h @@ -103,6 +103,12 @@ public: void Do(std::string* value_ptr); void Do(String* value_ptr); + template + void Do(std::array* data) + { + DoArray(data->data(), data->size()); + } + template void Do(std::vector* data) {