Fix initialization warning

This commit is contained in:
Vinnie Falco
2018-07-03 10:16:35 -07:00
parent b7cc754b2a
commit 9758e5d223
2 changed files with 8 additions and 2 deletions

View File

@@ -1,3 +1,9 @@
Version 175:
* Fix initialization warning
--------------------------------------------------------------------------------
Version 174:
* Fix Fields, FieldsWriter concept docs

View File

@@ -36,9 +36,9 @@ public:
std::unique_ptr<char[]> p(new char[len]);
for(std::size_t i = 1; i < len; ++i)
{
std::array<mutable_buffer, 2> mbs{
std::array<mutable_buffer, 2> mbs{{
mutable_buffer(p.get(), i),
mutable_buffer(p.get() + i, len - i)};
mutable_buffer(p.get() + i, len - i)}};
for(std::size_t j = 1; j < in.size(); ++j)
{
for(std::size_t k = 1; k < len; ++k)