Skip to content

Commit dc935b7

Browse files
committed
Bad idea.
1 parent 62b6228 commit dc935b7

1 file changed

Lines changed: 23 additions & 22 deletions

File tree

include/react/EventStream.h

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -193,28 +193,29 @@ inline auto Filter(const REvents<D,E>& src, const F& filter)
193193

194194
////////////////////////////////////////////////////////////////////////////////////////
195195
/// Comparison operators
196-
////////////////////////////////////////////////////////////////////////////////////////
197-
#define DECLARE_COMP_OP(op) \
198-
\
199-
template \
200-
< \
201-
typename D, \
202-
typename E \
203-
> \
204-
inline auto operator ## op(const REvents<D,E>& lhs, const E& rhs) \
205-
-> REvents<D,E> \
206-
{ \
207-
return Filter(lhs, [=] (const E& e) { return e op rhs; }); \
208-
}
209-
210-
DECLARE_COMP_OP(==);
211-
DECLARE_COMP_OP(!=);
212-
DECLARE_COMP_OP(<);
213-
DECLARE_COMP_OP(<=);
214-
DECLARE_COMP_OP(>);
215-
DECLARE_COMP_OP(>=);
216-
217-
#undef DECLARE_COMP_OP
196+
/// TODO: Bad idea...
197+
////////////////////////////////////////////////////////////////////////////////////////
198+
//#define DECLARE_COMP_OP(op) \
199+
// \
200+
//template \
201+
//< \
202+
// typename D, \
203+
// typename E \
204+
//> \
205+
//inline auto operator ## op(const REvents<D,E>& lhs, const E& rhs) \
206+
// -> REvents<D,E> \
207+
//{ \
208+
// return Filter(lhs, [=] (const E& e) { return e op rhs; }); \
209+
//}
210+
//
211+
//DECLARE_COMP_OP(==);
212+
//DECLARE_COMP_OP(!=);
213+
//DECLARE_COMP_OP(<);
214+
//DECLARE_COMP_OP(<=);
215+
//DECLARE_COMP_OP(>);
216+
//DECLARE_COMP_OP(>=);
217+
//
218+
//#undef DECLARE_COMP_OP
218219

219220
////////////////////////////////////////////////////////////////////////////////////////
220221
/// Transform

0 commit comments

Comments
 (0)