2
0
mirror of https://github.com/boostorg/odeint.git synced 2026-01-19 04:22:12 +00:00

Remove boost::mpl::and

This commit is contained in:
Matt Borland
2023-12-20 17:12:39 +01:00
parent 91712beba2
commit 0fc091f92f
2 changed files with 1 additions and 14 deletions

View File

@@ -32,18 +32,6 @@ namespace odeint {
namespace detail {
template< class Container1 , class Container2 >
void do_copying( const Container1 &from , Container2 &to , boost::mpl::true_ )
{
boost::range::copy( from , boost::begin( to ) );
}
template< class Container1 , class Container2 >
void do_copying( const Container1 &from , Container2 &to , boost::mpl::false_ )
{
to = from;
}
template< class Container1 , class Container2 >
void do_copying( const Container1 &from , Container2 &to , std::integral_constant<bool, true>)
{

View File

@@ -29,7 +29,6 @@
#include <type_traits>
#include <boost/range/config.hpp>
#include <boost/mpl/has_xxx.hpp>
#include <boost/mpl/and.hpp>
namespace boost {
namespace numeric {
@@ -47,7 +46,7 @@ namespace detail
{
template< typename Range >
struct is_range : boost::mpl::and_<range_detail::has_iterator<Range>, range_detail::has_const_iterator<Range> >
struct is_range : std::integral_constant<bool, (range_detail::has_iterator<Range>::value && range_detail::has_const_iterator<Range>::value)>
{
};