diff --git a/include/fc/static_variant.hpp b/include/fc/static_variant.hpp index 0fa2a7b..4a440a2 100644 --- a/include/fc/static_variant.hpp +++ b/include/fc/static_variant.hpp @@ -226,7 +226,7 @@ template static const fc::array init_wrappers( Visitor& v, Data d, typename Visitor::result_type(**funcs)(Visitor&,Data) = 0 ) { - fc::array result; + fc::array result{}; if( !funcs ) funcs = result.begin(); *funcs++ = [] ( Visitor& v, Data d ) { return v( *reinterpret_cast( d ) ); }; init_wrappers( v, d, funcs ); @@ -244,7 +244,7 @@ template static const fc::array init_const_wrappers( Visitor& v, Data d, typename Visitor::result_type(**funcs)(Visitor&,Data) = 0 ) { - fc::array result; + fc::array result{}; if( !funcs ) funcs = result.begin(); *funcs++ = [] ( Visitor& v, Data d ) { return v( *reinterpret_cast( d ) ); }; init_const_wrappers( v, d, funcs );