Topic: [Q]: why no dftl ctor in pair<T1, T2>?
Author: "Smirnov A.S." <sans@nfsun1.jinr.dubna.su>
Date: 1995/08/31 Raw View
Hello, everybody.
I have a question: why STL do not define default constructor for pair?
Is it really necessary? F.e, I might want to write:
pair<int, int> pii[10]; // This will not compile
or
vector<pair<int, int> > vpii; // This won't too
Andy.
---
[ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu.
Contact address: std-c++-request@ncar.ucar.edu. The moderation policy
is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]