Hi,
I have a vector of class Foo.
When I do a push_back(), I expect stl to call the default constructor
I wrote for Foo. But instead, stl makes up its own default that is
initialized with garbage.
Is there a way to force stl to use MY default constructor?
Thanks
I have a vector of class Foo.
When I do a push_back(), I expect stl to call the default constructor
I wrote for Foo. But instead, stl makes up its own default that is
initialized with garbage.
Is there a way to force stl to use MY default constructor?
Thanks
Comment