¡@

Home 

c++ Programming Glossary: mattr

Is it possible to defer member initialization to the constructor body?

http://stackoverflow.com/questions/2464296/is-it-possible-to-defer-member-initialization-to-the-constructor-body

So in essence class Example public Example private Bar mAttr You write Example Example The compiler understands Example Example.. Example Example The compiler understands Example Example mAttr And this of course fails if the underlying type does not have.. to use a pointer class Example public Example private Bar mAttr However I prefer using Boost.Optional combined with suitable..