use boost::tuple if using clang and libc++

This commit is contained in:
Sébastien Loriot 2014-12-30 10:13:56 +01:00
parent 205eca6d61
commit d4f875782c
1 changed files with 9 additions and 0 deletions

View File

@ -25,6 +25,15 @@
#include <CGAL/config.h> #include <CGAL/config.h>
// workaround issue in the tuple implementation of libc++
// by falling back onto boost's
#ifndef CGAL_CFG_NO_CPP0X_TUPLE
#include <cstddef>
#if defined( _LIBCPP_VERSION ) // check if libc++ is used
#define CGAL_CFG_NO_CPP0X_TUPLE
#endif
#endif
#ifndef CGAL_CFG_NO_CPP0X_TUPLE #ifndef CGAL_CFG_NO_CPP0X_TUPLE
# include <tuple> # include <tuple>
#else #else