StateWrapper: Add std::array overload

This commit is contained in:
Connor McLaughlin 2019-09-29 18:05:20 +10:00
parent a48b856a62
commit 9ee8c0194e

View file

@ -103,6 +103,12 @@ public:
void Do(std::string* value_ptr); void Do(std::string* value_ptr);
void Do(String* value_ptr); void Do(String* value_ptr);
template<typename T, size_t N>
void Do(std::array<T, N>* data)
{
DoArray(data->data(), data->size());
}
template<typename T> template<typename T>
void Do(std::vector<T>* data) void Do(std::vector<T>* data)
{ {