CUDA: disable some C++11 and 14 features which aren't supported when compiling as a .cu file.

This commit is contained in:
jzmaddock
2017-06-15 13:04:18 +01:00
parent d2b7f45ea2
commit 9b8de65f1d

View File

@ -30,3 +30,19 @@
#if defined(_MSC_VER)
# define BOOST_NO_CXX11_CONSTEXPR
#endif
#ifdef __CUDACC__
//
// When compiing .cu files, there's a bunch of stuff that doesn't work with msvc:
//
#if defined(_MSC_VER)
# define BOOST_NO_CXX14_DIGIT_SEPARATORS
# define BOOST_NO_CXX11_UNICODE_LITERALS
#endif
//
// And this one effects the NVCC front end:
//
#define BOOST_NO_CXX11_NOEXCEPT
#endif