c++ - Is it possible to initialize an object in a class function, not in constructor -
hey looking see if there way me initialize member object in class function. meaning not use member initializer list.
i don't want:foo::foo(): bar(), barbar(){}
but want: foo::setup(){bar(); barbar() }
hope can me out here.
Comments
Post a Comment