Avoid missing braces warning in serialization_construct_data_test

This commit is contained in:
Peter Dimov
2023-02-21 02:23:52 +02:00
parent 0be25e19cc
commit ceb4fff8fc

View File

@ -76,7 +76,7 @@ int main()
{ {
std::ostringstream os; std::ostringstream os;
Y y1 = { X(7), X(11) }; Y y1 = {{ X(7), X(11) }};
{ {
boost::archive::text_oarchive ar( os ); boost::archive::text_oarchive ar( os );
@ -85,7 +85,7 @@ int main()
std::string s = os.str(); std::string s = os.str();
Y y2 = { X(0), X(0) }; Y y2 = {{ X(0), X(0) }};
{ {
std::istringstream is( s ); std::istringstream is( s );