
2 Feb
2006
2 Feb
'06
9:18 p.m.
Peter Dimov <pdimov <at> mmltd.net> writes:
David Abrahams wrote:
Is it really true that I can write
bind(f, _1) > _2
but can't write
_1 > _2
??
A limitation of the current implementation. On some compilers, the placeholders are function pointers and _1 > _2 can't be overloaded. There's no other technical reason that prevents _1 > _2 (or _1 > 0) from working; it'd fall out of the specification.
Peter, is there still a good reason for this implementation detail? If people could write: *_1 < *_2 it would make a killer demo. I would personally scramble to implement this in time for 1.34 if you tell me there's a possibility. -Dave