mirror of https://github.com/CGAL/cgal
Add more information about make_array().
It's potentially removable, actually, apart from VC++ being too buggy as usual.
This commit is contained in:
parent
dec43273d8
commit
1948ac7df0
|
|
@ -59,10 +59,23 @@ using cpp0x::array;
|
||||||
// I proposed it for Boost.Array, but it has not been integrated so far.
|
// I proposed it for Boost.Array, but it has not been integrated so far.
|
||||||
// See the thread starting at
|
// See the thread starting at
|
||||||
// http://lists.boost.org/Archives/boost/2006/08/109003.php
|
// 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.
|
// Hopefully C++0x will fix this properly with initializer_lists.
|
||||||
// So, it's temporary, therefore I do not document it and keep it internal.
|
// 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<M,2> 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
|
#ifndef CGAL_CFG_NO_CPP0X_VARIADIC_TEMPLATES
|
||||||
|
|
||||||
template< typename T, typename... Args >
|
template< typename T, typename... Args >
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue