From dde4353e15dec2f0309b577e61912621237f1977 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20M=C3=B6ller?= Date: Sun, 20 May 2012 13:25:33 +0000 Subject: [PATCH] Those are also already replaced. --- .../testfiles/CGAL_CFG_NO_CPP0X_AUTO.cpp | 38 --------------- ...NO_CPP0X_DELETED_AND_DEFAULT_FUNCTIONS.cpp | 33 ------------- .../CGAL_CFG_NO_CPP0X_INITIALIZER_LISTS.cpp | 47 ------------------- 3 files changed, 118 deletions(-) delete mode 100644 Installation/config/testfiles/CGAL_CFG_NO_CPP0X_AUTO.cpp delete mode 100644 Installation/config/testfiles/CGAL_CFG_NO_CPP0X_DELETED_AND_DEFAULT_FUNCTIONS.cpp delete mode 100644 Installation/config/testfiles/CGAL_CFG_NO_CPP0X_INITIALIZER_LISTS.cpp diff --git a/Installation/config/testfiles/CGAL_CFG_NO_CPP0X_AUTO.cpp b/Installation/config/testfiles/CGAL_CFG_NO_CPP0X_AUTO.cpp deleted file mode 100644 index c0283333378..00000000000 --- a/Installation/config/testfiles/CGAL_CFG_NO_CPP0X_AUTO.cpp +++ /dev/null @@ -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; -} diff --git a/Installation/config/testfiles/CGAL_CFG_NO_CPP0X_DELETED_AND_DEFAULT_FUNCTIONS.cpp b/Installation/config/testfiles/CGAL_CFG_NO_CPP0X_DELETED_AND_DEFAULT_FUNCTIONS.cpp deleted file mode 100644 index 6770cd82395..00000000000 --- a/Installation/config/testfiles/CGAL_CFG_NO_CPP0X_DELETED_AND_DEFAULT_FUNCTIONS.cpp +++ /dev/null @@ -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; -} diff --git a/Installation/config/testfiles/CGAL_CFG_NO_CPP0X_INITIALIZER_LISTS.cpp b/Installation/config/testfiles/CGAL_CFG_NO_CPP0X_INITIALIZER_LISTS.cpp deleted file mode 100644 index c7c2fdd4d01..00000000000 --- a/Installation/config/testfiles/CGAL_CFG_NO_CPP0X_INITIALIZER_LISTS.cpp +++ /dev/null @@ -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 -#include -#include -#include - -template < typename T > -void use(const T&) {} - -struct S -{ - S(std::initializer_list l) - { - std::vector v(l.begin(), l.end()); - use(v); - } -}; - -int main() -{ - int a = {1}; - std::complex z{1,2}; - std::vector v{"once", "upon", "a", "time"}; // 4 string elements - use(a); use(z); use(v); - return 0; -}