Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:42:49

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 
0022 //type traits aren't working with nvcc
0023 #ifndef __CUDACC__
0024 #include <boost/type_traits.hpp>
0025 #include <boost/static_assert.hpp>
0026 
0027 #define BOOST_ODEINT_CHECK_CONTAINER_TYPE( Type1 , Type2 ) \
0028         BOOST_STATIC_ASSERT(( boost::is_same< typename boost::remove_const< Type1 >::type , Type2 >::value ))
0029 
0030 #else
0031 //empty macro for nvcc
0032 #define BOOST_ODEINT_CHECK_CONTAINER_TYPE( Type1 , Type2 )
0033 
0034 #endif // __CUDACC__
0035 
0036 
0037 
0038 /*
0039 #define BOOST_ODEINT_CHECK_OPERATION_ARITY( Operation , Arity ) \
0040         BOOST_STATIC_ASSERT(( boost::function_traits< Operation >::arity == Arity ))
0041  */
0042 
0043 #endif // BOOST_NUMERIC_ODEINT_ALGEBRA_DETAIL_MACROS_HPP_INCLUDED