1
0
forked from boostorg/mp11

Changed precompiler test for cuda 9 workaround

BOOST_WORKAROUND( BOOST_CUDA_VERSION, / 1000000 == 9 ) was not working because
BOOST_CUDA_VERSION is defined as sum without brackets so / 1000000 was only
applied to the last addend.
This commit is contained in:
Alexander Matthes
2018-04-27 08:52:54 +02:00
parent b78e808fc1
commit 6cd7355d94
3 changed files with 8 additions and 8 deletions

View File

@@ -106,7 +106,7 @@ struct mp_no_type
{
};
#if BOOST_WORKAROUND( BOOST_CUDA_VERSION, / 1000000 == 9 )
#if BOOST_WORKAROUND( BOOST_CUDA_VERSION, >= 9000000 && BOOST_CUDA_VERSION < 10000000 )
template<template<class...> class F, class... T> struct mp_defer_cuda_workaround
{
@@ -117,7 +117,7 @@ template<template<class...> class F, class... T> struct mp_defer_cuda_workaround
} // namespace detail
#if BOOST_WORKAROUND( BOOST_CUDA_VERSION, / 1000000 == 9 )
#if BOOST_WORKAROUND( BOOST_CUDA_VERSION, >= 9000000 && BOOST_CUDA_VERSION < 10000000 )
template<template<class...> class F, class... T> using mp_defer = typename detail::mp_defer_cuda_workaround< F, T...>::type;