Fix potentially not-initialized variable warning

This commit is contained in:
Ion Gaztañaga
2022-08-24 14:31:28 +02:00
parent 5c03f64f9b
commit d98c21fc33

View File

@@ -266,10 +266,10 @@ int main()
return 1; return 1;
} }
{ { //Test enum container
typedef vector<Test, std::allocator<Test> > MyEnumCont; typedef vector<Test, std::allocator<Test> > MyEnumCont;
MyEnumCont v; MyEnumCont v;
Test t; Test t = Test();
v.push_back(t); v.push_back(t);
v.push_back(::boost::move(t)); v.push_back(::boost::move(t));
v.push_back(Test()); v.push_back(Test());