Topic: make_pair does not support C arrays


Author: Valentin Bonnard <Bonnard.V@wanadoo.fr>
Date: 1999/08/06
Raw View
Valentin Bonnard wrote:

> Yes, and you may still create a pair yourself, w/o
> the help of make_pair.

Non-sens: there is no way to create a pair<T[S], U>,
because all the ctors migth use the member-init-list
to innitialize first and second.

Just avoid C-arrays in C++.

--

Valentin Bonnard
---
[ 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              ]