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

cron - how to properly run Python script with crontab on every system startup -

elasticsearch - Is the order of operations guaranteed in a bulk update? -

Slow performance first queries on SQL Azure -