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

many to many - Django Rest Framework ManyToMany filter multiple values -

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

Java Entity Manager - JSON reader was expecting a value but found 'db' -