Add member functions to X in operator_eq_test, operator_lt_test

This commit is contained in:
Peter Dimov
2022-09-29 20:07:59 +03:00
parent ef9c38f90c
commit 9273e7c0af
2 changed files with 6 additions and 2 deletions

View File

@@ -20,9 +20,11 @@ namespace app
struct X
{
void f() const {}
static void g() {}
};
BOOST_DESCRIBE_STRUCT(X, (), ())
BOOST_DESCRIBE_STRUCT(X, (), (f, g))
using boost::describe::operators::operator==;
using boost::describe::operators::operator<<;

View File

@@ -20,9 +20,11 @@ namespace app
struct X
{
void f() const {}
static void g() {}
};
BOOST_DESCRIBE_STRUCT(X, (), ())
BOOST_DESCRIBE_STRUCT(X, (), (f, g))
using boost::describe::operators::operator<=;
using boost::describe::operators::operator>=;