From 1948ac7df0d7a3a4fe2e672130be67aedea6855a Mon Sep 17 00:00:00 2001 From: Sylvain Pion Date: Tue, 4 Aug 2009 15:03:23 +0000 Subject: [PATCH] Add more information about make_array(). It's potentially removable, actually, apart from VC++ being too buggy as usual. --- STL_Extension/include/CGAL/array.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/STL_Extension/include/CGAL/array.h b/STL_Extension/include/CGAL/array.h index 3e61dab61a2..d2c225c7500 100644 --- a/STL_Extension/include/CGAL/array.h +++ b/STL_Extension/include/CGAL/array.h @@ -59,10 +59,23 @@ using cpp0x::array; // I proposed it for Boost.Array, but it has not been integrated so far. // See the thread starting at // http://lists.boost.org/Archives/boost/2006/08/109003.php +// +// C++0x has it under discussion here : +// http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#851 // Hopefully C++0x will fix this properly with initializer_lists. // So, it's temporary, therefore I do not document it and keep it internal. +// NOTE : The above is actually untrue ! It is possible to do : +// struct S2 { +// typedef boost::array Ar; +// Ar m; +// S2 (const M&a) : m ((Ar) { { a, a } }) {} +// }; +// without spurious copies... Except VC++ does not eat it :-( + +// It's also untrue that this is not documented... It is ! + #ifndef CGAL_CFG_NO_CPP0X_VARIADIC_TEMPLATES template< typename T, typename... Args >