From e551a1b53e9062071d3cecbb4beb7dd9d3a2c291 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Wed, 17 Jul 2019 12:00:05 -0400 Subject: [PATCH] Fix compiling with NVCC prior to 9.2 --- bundled/boost-1.70.0/include/boost/core/noncopyable.hpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bundled/boost-1.70.0/include/boost/core/noncopyable.hpp b/bundled/boost-1.70.0/include/boost/core/noncopyable.hpp index 4a4f8baba5..a6b953b68f 100644 --- a/bundled/boost-1.70.0/include/boost/core/noncopyable.hpp +++ b/bundled/boost-1.70.0/include/boost/core/noncopyable.hpp @@ -38,12 +38,17 @@ namespace noncopyable_ // protection from unintended ADL class noncopyable: base_token { protected: -#if !defined(BOOST_NO_CXX11_DEFAULTED_FUNCTIONS) && !defined(BOOST_NO_CXX11_NON_PUBLIC_DEFAULTED_FUNCTIONS) +#if defined(BOOST_CUDA_VERSION) && (BOOST_CUDA_VERSION < 9020000) + noncopyable() {} + ~noncopyable() {} +#else + #if !defined(BOOST_NO_CXX11_DEFAULTED_FUNCTIONS) && !defined(BOOST_NO_CXX11_NON_PUBLIC_DEFAULTED_FUNCTIONS) BOOST_CONSTEXPR noncopyable() = default; ~noncopyable() = default; -#else + #else noncopyable() {} ~noncopyable() {} + #endif #endif #if !defined(BOOST_NO_CXX11_DELETED_FUNCTIONS) noncopyable( const noncopyable& ) = delete; -- 2.39.5