File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff 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, !=);
You can’t perform that action at this time.
0 commit comments