Ticket #13152: boost.patch

File boost.patch, 896 bytes (added by sean.happel@…, 5 years ago)

Potential patch

  • usr/include/boost/config/compiler/nvcc.hpp

     
    1919// https://svn.boost.org/trac/boost/ticket/11897
    2020// This is fixed in 7.5. As the following version macro was introduced in 7.5 an existance
    2121// check is enough to detect versions < 7.5
    22 #if !defined(__CUDACC_VER__) || (__CUDACC_VER__ < 70500)
     22#if !defined(__CUDACC_VER_MAJOR__) || (__CUDACC_VER_MAJOR__ < 7) || ((__CUDACC_VER_MAJOR__ == 7) && (__CUDACC_VER_MINOR__ < 5))
    2323#   define BOOST_NO_CXX11_VARIADIC_TEMPLATES
    2424#endif
    2525// The same bug is back again in 8.0:
    26 #if (__CUDACC_VER__ > 80000) && (__CUDACC_VER__ < 80100)
     26#if (__CUDACC_VER_MAJOR__ == 8) && (__CUDACC_VER_MINOR__ < 1)
    2727#   define BOOST_NO_CXX11_VARIADIC_TEMPLATES
    2828#endif
    2929// Most recent CUDA (8.0) has no constexpr support in msvc mode: