Topic: Why don't make 2nd template argument of std::pair default (= the 1st)?


Author: "Vlad Harchev" <vladhar@imimail.ssau.ru>
Date: 1998/11/06
Raw View
Why don't make 2nd template argument of std::pair default (= the 1st)? I
think this won't issue compatibility problems, but make the use of the
std::pair much easier. If programmer wants a pair of objects of the same
type (especially when the name of this type is hard to type) then it will
make his/her life easier. At least CD2 disallows changing the set of default
template arguments anyway - so this can be achieved only by fixing the
<utility> header.




[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]