macros.hpp 919 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. [auto_generated]
  3. boost/numeric/odeint/algebra/detail/macros.hpp
  4. [begin_description]
  5. Some macros for type checking.
  6. [end_description]
  7. Copyright 2010-2012 Karsten Ahnert
  8. Copyright 2010 Mario Mulansky
  9. Distributed under the Boost Software License, Version 1.0.
  10. (See accompanying file LICENSE_1_0.txt or
  11. copy at http://www.boost.org/LICENSE_1_0.txt)
  12. */
  13. #ifndef BOOST_NUMERIC_ODEINT_ALGEBRA_DETAIL_MACROS_HPP_INCLUDED
  14. #define BOOST_NUMERIC_ODEINT_ALGEBRA_DETAIL_MACROS_HPP_INCLUDED
  15. #include <type_traits>
  16. //type traits aren't working with nvcc
  17. #ifndef __CUDACC__
  18. #define BOOST_ODEINT_CHECK_CONTAINER_TYPE( Type1 , Type2 ) \
  19. static_assert(( std::is_same< typename std::remove_const< Type1 >::type , Type2 >::value ));
  20. #else
  21. //empty macro for nvcc
  22. #define BOOST_ODEINT_CHECK_CONTAINER_TYPE( Type1 , Type2 )
  23. #endif // __CUDACC__
  24. #endif // BOOST_NUMERIC_ODEINT_ALGEBRA_DETAIL_MACROS_HPP_INCLUDED