Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-10-20 08:32:20

0001 /*
0002  [auto_generated]
0003  boost/numeric/odeint/algebra/detail/macros.hpp
0004 
0005  [begin_description]
0006  Some macros for type checking.
0007  [end_description]
0008 
0009  Copyright 2010-2012 Karsten Ahnert
0010  Copyright 2010 Mario Mulansky
0011 
0012  Distributed under the Boost Software License, Version 1.0.
0013  (See accompanying file LICENSE_1_0.txt or
0014  copy at http://www.boost.org/LICENSE_1_0.txt)
0015  */
0016 
0017 
0018 #ifndef BOOST_NUMERIC_ODEINT_ALGEBRA_DETAIL_MACROS_HPP_INCLUDED
0019 #define BOOST_NUMERIC_ODEINT_ALGEBRA_DETAIL_MACROS_HPP_INCLUDED
0020 
0021 #include <type_traits>
0022 
0023 //type traits aren't working with nvcc
0024 #ifndef __CUDACC__
0025 
0026 #define BOOST_ODEINT_CHECK_CONTAINER_TYPE( Type1 , Type2 ) \
0027         static_assert(( std::is_same< typename std::remove_const< Type1 >::type , Type2 >::value ));
0028 
0029 #else
0030 //empty macro for nvcc
0031 #define BOOST_ODEINT_CHECK_CONTAINER_TYPE( Type1 , Type2 )
0032 
0033 #endif // __CUDACC__
0034 
0035 #endif // BOOST_NUMERIC_ODEINT_ALGEBRA_DETAIL_MACROS_HPP_INCLUDED