No, it won't compile. Template arguments of a vector are required to be default constructible. The template arguments of vector are only required to be CopyConstructible and Assignable.
No, it won't compile. Template arguments of a vector are required to be default constructible.