So it's my understanding that if I have SomeType foo
, the default constructor for SomeType
will be invoked and foo
will be initialized. But if I have int x
-- this is undefined according to the spec. Why isn't the default constructor (int()
) invoked?
Aucun commentaire:
Enregistrer un commentaire