Chris@16: /* Chris@16: [auto_generated] Chris@16: boost/numeric/odeint/algebra/detail/macros.hpp Chris@16: Chris@16: [begin_description] Chris@16: Some macros for type checking. Chris@16: [end_description] Chris@16: Chris@101: Copyright 2010-2012 Karsten Ahnert Chris@101: Copyright 2010 Mario Mulansky Chris@16: Chris@16: Distributed under the Boost Software License, Version 1.0. Chris@16: (See accompanying file LICENSE_1_0.txt or Chris@16: copy at http://www.boost.org/LICENSE_1_0.txt) Chris@16: */ Chris@16: Chris@16: Chris@16: #ifndef BOOST_NUMERIC_ODEINT_ALGEBRA_DETAIL_MACROS_HPP_INCLUDED Chris@16: #define BOOST_NUMERIC_ODEINT_ALGEBRA_DETAIL_MACROS_HPP_INCLUDED Chris@16: Chris@16: Chris@16: //type traits aren't working with nvcc Chris@16: #ifndef __CUDACC__ Chris@16: #include Chris@16: #include Chris@16: Chris@16: #define BOOST_ODEINT_CHECK_CONTAINER_TYPE( Type1 , Type2 ) \ Chris@16: BOOST_STATIC_ASSERT(( boost::is_same< typename boost::remove_const< Type1 >::type , Type2 >::value )) Chris@16: Chris@16: #else Chris@16: //empty macro for nvcc Chris@16: #define BOOST_ODEINT_CHECK_CONTAINER_TYPE( Type1 , Type2 ) Chris@16: Chris@16: #endif // __CUDACC__ Chris@16: Chris@16: Chris@16: Chris@16: /* Chris@16: #define BOOST_ODEINT_CHECK_OPERATION_ARITY( Operation , Arity ) \ Chris@16: BOOST_STATIC_ASSERT(( boost::function_traits< Operation >::arity == Arity )) Chris@16: */ Chris@16: Chris@16: #endif // BOOST_NUMERIC_ODEINT_ALGEBRA_DETAIL_MACROS_HPP_INCLUDED