Re: [Boost-users] [bind] Dereferencing placeholder argument
9 Sep
2011
9 Sep
'11
3:52 p.m.
----- "Szymon Gatner"
2011/9/9 Nat Linden
: On Fri, Sep 9, 2011 at 10:04 AM, Ivan Le Lann
wrote: Have you tried *_1 ?
I think that works with boost::lambda::bind and boost::lambda::_1 (also, presumably, the corresponding constructs in Phoenix) but not with plain boost::bind.
Indeed I tried that - getting invalid indirection error.
Some time ago I offered a patch to add arithmetical operator support to Boost.Bind and was answered : Use Lambda or Phoenix. If you want to tweak Boost.Bind, which I would not encourage, maybe this could help : http://boost.2283326.n4.nabble.com/Bind-Function-arithmetic-sample-impl-insi... As said, it is for arithmetical operators but might be adapted to your need. Regards, Ivan
4816
Age (days ago)
4816
Last active (days ago)
0 comments
1 participants
participants (1)
-
Ivan Le Lann