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

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

mapreduce - Resource manager does not transit to active state from standby -

serialization - Convert Any type in scala to Array[Byte] and back -