Fix for CUDA on Clang compilation failure when including type traits headers.

See https://svn.boost.org/trac/boost/ticket/10694.
This commit is contained in:
jzmaddock
2014-11-10 17:58:14 +00:00
parent 817d036e1e
commit 9b12c8ad6a

View File

@@ -132,7 +132,13 @@
# define BOOST_HAS_TYPE_TRAITS_INTRINSICS
#endif
#if defined(BOOST_CLANG) && defined(__has_feature)
#if defined(BOOST_CLANG) && defined(__has_feature) && !defined(__CUDACC__)
//
// Note that these intrinsics are disabled for the CUDA meta-compiler as it appears
// to not support them, even though the underlying clang compiler does so.
// This is a rubbish fix as it basically stops type traits from working correctly,
// but maybe the best we can do for now. See https://svn.boost.org/trac/boost/ticket/10694
//
# include <cstddef>
# include <boost/type_traits/is_same.hpp>
# include <boost/type_traits/is_reference.hpp>