Skip to content

Commit 10ec3a6

Browse files
committed
Cosmetic cleanup of VS work around
1 parent 91cb107 commit 10ec3a6

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

trompeloeil.hpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1268,10 +1268,14 @@ namespace trompeloeil
12681268
// since it doesn't respect the trailing return type declaration on
12691269
// the lambdas of template deduction context
12701270

1271-
#define TROMPELOEIL_MK_PRED_BINOP(name, op) \
1272-
struct name { \
1273-
template <typename X, typename Y> \
1274-
auto operator()(X const& x, Y const& y) const -> decltype(x op y) { return x op y; } \
1271+
#define TROMPELOEIL_MK_PRED_BINOP(name, op) \
1272+
struct name { \
1273+
template <typename X, typename Y> \
1274+
auto operator()(X const& x, Y const& y) const -> decltype(x op y) \
1275+
{ \
1276+
::trompeloeil::ignore(x,y); \
1277+
return x op y; \
1278+
} \
12751279
}
12761280
TROMPELOEIL_MK_PRED_BINOP(equal, ==);
12771281
TROMPELOEIL_MK_PRED_BINOP(not_equal, !=);

0 commit comments

Comments
 (0)