c++ - C++03 Initialization of an Array of Objects -
i'm sure dupe, can't seem find information on prior c++11.
if have plain old data (pod) type:
class foo { double x, y, z; };
and class such as:
class bar { foo foos[13]; };
if construct bar
object default initialize 13 foo
member objects default initializer?
i've tested visual studio 2008 , default initializing foo
objects. i'd know if that's standard behavior or visual studio special sauce.
it seems had created variables in zeroed range.
Comments
Post a Comment