Constructors cannot be called. Am I right?
Kindly give me any possible way to call constructor of a class.
class Foo;//forward declaration
Foo x = Foo();//Default constructor
bar.emplace_back(Foo(1));//Constructor with parameters
Topic archived. No new replies allowed.