diff --git a/tests/test_trait_tests.cpp b/tests/test_trait_tests.cpp index d4a21abe..fff18df6 100644 --- a/tests/test_trait_tests.cpp +++ b/tests/test_trait_tests.cpp @@ -87,10 +87,10 @@ int main() float f = 0.0f; bool float_can = set_from (f); - std::array c; + std::array c = {0.0}; bool array_can = set_from (c); - std::vector c2; + std::vector c2 = {0.0}; bool vector_can = set_from (c2); // I want false returned for std::map as this can't be set_from. So it's not JUST that map has @@ -99,13 +99,13 @@ int main() //std::map c3; //bool map_can = set_from (c3); - std::set c4; + std::set c4 = {}; bool set_can = set_from (c4); - std::complex c5; + std::complex c5 = {}; bool complex_can = complex_from (c5); - float c6; + float c6 = 0.0f; bool float_is_complex = complex_from (c6); if (float_can || !array_can || !vector_can || !set_can || !complex_can || float_is_complex) {