From d4f875782c096c2900c8a0489ecbb4372da80340 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Tue, 30 Dec 2014 10:13:56 +0100 Subject: [PATCH] use boost::tuple if using clang and libc++ --- STL_Extension/include/CGAL/tuple.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/STL_Extension/include/CGAL/tuple.h b/STL_Extension/include/CGAL/tuple.h index b8c67fd2f7e..300cc06a5ec 100644 --- a/STL_Extension/include/CGAL/tuple.h +++ b/STL_Extension/include/CGAL/tuple.h @@ -25,6 +25,15 @@ #include +// workaround issue in the tuple implementation of libc++ +// by falling back onto boost's +#ifndef CGAL_CFG_NO_CPP0X_TUPLE + #include + #if defined( _LIBCPP_VERSION ) // check if libc++ is used + #define CGAL_CFG_NO_CPP0X_TUPLE + #endif +#endif + #ifndef CGAL_CFG_NO_CPP0X_TUPLE # include #else