diff -urN boost~/mpl/aux_/integral_wrapper.hpp boost/mpl/aux_/integral_wrapper.hpp
old
|
new
|
|
56 | 56 | // have to #ifdef here: some compilers don't like the 'N + 1' form (MSVC), |
57 | 57 | // while some other don't like 'value + 1' (Borland), and some don't like |
58 | 58 | // either |
59 | | #if BOOST_WORKAROUND(__EDG_VERSION__, <= 243) |
| 59 | #if BOOST_WORKAROUND(__EDG_VERSION__, <= 243) || defined(__CUDACC__) |
60 | 60 | private: |
61 | 61 | BOOST_STATIC_CONSTANT(AUX_WRAPPER_VALUE_TYPE, next_value = BOOST_MPL_AUX_STATIC_CAST(AUX_WRAPPER_VALUE_TYPE, (N + 1))); |
62 | 62 | BOOST_STATIC_CONSTANT(AUX_WRAPPER_VALUE_TYPE, prior_value = BOOST_MPL_AUX_STATIC_CAST(AUX_WRAPPER_VALUE_TYPE, (N - 1))); |
diff -urN boost~/mpl/size_t_fwd.hpp boost/mpl/size_t_fwd.hpp
old
|
new
|
|
20 | 20 | |
21 | 21 | BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE_OPEN |
22 | 22 | |
| 23 | #if defined(__CUDACC__) |
| 24 | typedef std::size_t std_size_t; |
| 25 | template< std_size_t N > struct size_t; |
| 26 | #else |
23 | 27 | template< std::size_t N > struct size_t; |
| 28 | #endif |
24 | 29 | |
25 | 30 | BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE_CLOSE |
26 | 31 | BOOST_MPL_AUX_ADL_BARRIER_DECL(size_t) |
diff -urN boost~/mpl/size_t.hpp boost/mpl/size_t.hpp
old
|
new
|
|
16 | 16 | |
17 | 17 | #include <boost/mpl/size_t_fwd.hpp> |
18 | 18 | |
| 19 | |
| 20 | #if defined(__CUDACC__) |
| 21 | |
| 22 | //typedef std::size_t std_size_t; |
| 23 | #define AUX_WRAPPER_VALUE_TYPE std_size_t |
| 24 | #define AUX_WRAPPER_NAME size_t |
| 25 | #define AUX_WRAPPER_PARAMS(N) std_size_t N |
| 26 | |
| 27 | #else |
| 28 | |
19 | 29 | #define AUX_WRAPPER_VALUE_TYPE std::size_t |
20 | 30 | #define AUX_WRAPPER_NAME size_t |
21 | 31 | #define AUX_WRAPPER_PARAMS(N) std::size_t N |
22 | 32 | |
| 33 | #endif |
| 34 | |
23 | 35 | #include <boost/mpl/aux_/integral_wrapper.hpp> |
24 | 36 | |
25 | 37 | #endif // BOOST_MPL_SIZE_T_HPP_INCLUDED |