Dhruv Matani <dhruvbird@gmx.net> writes: | Hello, | I wanted to know if such a construct is a valid according to the C++ | standard. If it is then there is a problem in the library. | | std::vector<int> iv(0, 1); Yes. There is no requirement that n shall be nonzero. -- Gaby