Hi,
Is there a difference between default constructor and user defined
constructor regarding initialization of objects?
For instance :
struct S
{
//S();
};
const S s;
doesn't compile because s is not initialized at the moment of its
declaration. if I uncomment the constructor, it compiles without error.
My question: doesn't the default constructor have to default initialize
the object? Obviously, it's not the case. Why have I to provide my own
constructor in this case?
Michel
--
Michel Leunen
http://linux.leunen.com