struct Contents { double stuff; double mint;};class Oreo { Oreo();private: Contents mFilling;};Oreo::Oreo() : mFilling{1.0, 2.0}{ auto home = getenv("HOME"); if (home && *home) { // <-- Can't find home mFilling.stuff = 2.0; }}
Oreo::Oreo() : mFilling( {1.0, 2.0} ){ auto home = getenv("HOME"); if (home && *home) { // <-- Can't find home mFilling.stuff = 2.0; }}