mirror of https://github.com/CGAL/cgal
Those are also already replaced.
This commit is contained in:
parent
a621ff3f6b
commit
dde4353e15
|
|
@ -1,38 +0,0 @@
|
|||
// Copyright (c) 2010 INRIA Sophia-Antipolis (France).
|
||||
// All rights reserved.
|
||||
//
|
||||
// This file is part of CGAL (www.cgal.org); you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public License as
|
||||
// published by the Free Software Foundation; either version 3 of the License,
|
||||
// or (at your option) any later version.
|
||||
//
|
||||
// Licensees holding a valid commercial license may use this file in
|
||||
// accordance with the commercial license agreement provided with the software.
|
||||
//
|
||||
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
//
|
||||
// $URL$
|
||||
// $Id$
|
||||
//
|
||||
// Author(s) : Sylvain Pion
|
||||
|
||||
//| If a compiler does not support C++0x auto
|
||||
//| CGAL_CFG_NO_CPP0X_AUTO is set.
|
||||
|
||||
struct A {};
|
||||
|
||||
void use(A) {}
|
||||
|
||||
A f()
|
||||
{
|
||||
return A();
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
auto i = f();
|
||||
A j = i;
|
||||
use(j);
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -1,33 +0,0 @@
|
|||
// Copyright (c) 2008 INRIA Sophia-Antipolis (France).
|
||||
// All rights reserved.
|
||||
//
|
||||
// This file is part of CGAL (www.cgal.org); you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public License as
|
||||
// published by the Free Software Foundation; either version 3 of the License,
|
||||
// or (at your option) any later version.
|
||||
//
|
||||
// Licensees holding a valid commercial license may use this file in
|
||||
// accordance with the commercial license agreement provided with the software.
|
||||
//
|
||||
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
//
|
||||
// $URL$
|
||||
// $Id$
|
||||
//
|
||||
// Author(s) : Sylvain Pion
|
||||
|
||||
//| If a compiler does not support "explicitly-defaulted" and "deleted" functions (from C++0x)
|
||||
//| CGAL_CFG_NO_CPP0X_DELETED_AND_DEFAULT_FUNCTIONS is set.
|
||||
|
||||
struct A {
|
||||
A () = default;
|
||||
A (int) = delete;
|
||||
A (const A&) = delete;
|
||||
};
|
||||
|
||||
int main()
|
||||
{
|
||||
A a;
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -1,47 +0,0 @@
|
|||
// Copyright (c) 2010 INRIA Sophia-Antipolis (France).
|
||||
// All rights reserved.
|
||||
//
|
||||
// This file is part of CGAL (www.cgal.org); you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public License as
|
||||
// published by the Free Software Foundation; either version 3 of the License,
|
||||
// or (at your option) any later version.
|
||||
//
|
||||
// Licensees holding a valid commercial license may use this file in
|
||||
// accordance with the commercial license agreement provided with the software.
|
||||
//
|
||||
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
//
|
||||
// $URL$
|
||||
// $Id$
|
||||
//
|
||||
// Author(s) : Sylvain Pion
|
||||
|
||||
//| If a compiler does not support C++0x initializer lists
|
||||
//| CGAL_CFG_NO_CPP0X_INITIALIZER_LISTS is set.
|
||||
|
||||
#include <initializer_list>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <complex>
|
||||
|
||||
template < typename T >
|
||||
void use(const T&) {}
|
||||
|
||||
struct S
|
||||
{
|
||||
S(std::initializer_list<double> l)
|
||||
{
|
||||
std::vector<double> v(l.begin(), l.end());
|
||||
use(v);
|
||||
}
|
||||
};
|
||||
|
||||
int main()
|
||||
{
|
||||
int a = {1};
|
||||
std::complex<double> z{1,2};
|
||||
std::vector<std::string> v{"once", "upon", "a", "time"}; // 4 string elements
|
||||
use(a); use(z); use(v);
|
||||
return 0;
|
||||
}
|
||||
Loading…
Reference in New Issue