Constructors cannot be called. Am I right?

Kindly give me any possible way to call constructor of a class.
1
2
3
4
5
class Foo;//forward declaration

Foo x = Foo();//Default constructor
std::vector<Foo> bar;
bar.emplace_back(Foo(1));//Constructor with parameters 
Topic archived. No new replies allowed.