forked from boostorg/fusion
Patch by Nathan Ridge to allow BOOST_FUSION_ADAPT_ADT adapted classes to be compared using relational operators.
[SVN r78490]
This commit is contained in:
@ -12,6 +12,7 @@
|
||||
#include <boost/fusion/iterator/deref.hpp>
|
||||
#include <boost/fusion/iterator/next.hpp>
|
||||
#include <boost/fusion/iterator/equal_to.hpp>
|
||||
#include <boost/fusion/support/as_const.hpp>
|
||||
|
||||
namespace boost { namespace fusion { namespace detail
|
||||
{
|
||||
@ -32,8 +33,9 @@ namespace boost { namespace fusion { namespace detail
|
||||
static bool
|
||||
call(I1 const& a, I2 const& b, mpl::false_)
|
||||
{
|
||||
return *a <= *b
|
||||
&& (!(*b <= *a) || call(fusion::next(a), fusion::next(b)));
|
||||
return extension::as_const(*a) <= extension::as_const(*b)
|
||||
&& (!(extension::as_const(*b) <= extension::as_const(*a)) ||
|
||||
call(fusion::next(a), fusion::next(b)));
|
||||
}
|
||||
|
||||
template <typename I1, typename I2>
|
||||
|
Reference in New Issue
Block a user