]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix compiling with NVCC prior to 9.2
authorDaniel Arndt <arndtd@ornl.gov>
Wed, 17 Jul 2019 16:00:05 +0000 (12:00 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Thu, 18 Jul 2019 20:22:45 +0000 (16:22 -0400)
bundled/boost-1.70.0/include/boost/core/noncopyable.hpp

index 4a4f8baba5dd69114d3ba56b4f6171325a5e66ef..a6b953b68fa9c3f7a79569ba8be32fc299be3eae 100644 (file)
@@ -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;

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.