If we use resize to expand a container, then the element of the container must have default constructor.