0

Hey i am looking to see if there is a way for me to initialize a member object in a class function. Meaning i would like not to use the member initializer list.

I don't want:Foo::Foo(): bar(), barBar(){}

but want: Foo::setup(){bar(); barBar() }

Hope you can help me out here.

Neobonde
  • 85
  • 2
  • 7

0 Answers0