forked from boostorg/type_traits
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:
@@ -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>
|
||||
|
Reference in New Issue
Block a user