Boost logo

Boost :

Subject: [boost] [Bind] Function arithmetic (sample impl inside)
From: ivan.lelann_at_[hidden]
Date: 2010-04-11 19:22:13


Hi,

It's my first message here, so please excuse possible mistakes.

I found that Boost.Bind offers logical operators but no arithmetical operators.
Looking into boost/bind/bind.hpp, and using "logical_not" impl,
I wrote the following naive patch against version 1.40.
It is certainly not as robust as Boost exspects, it is quickly tested,
but it seems to do the job, as you can see in the test.

Please use attached documents as you see fit.

Regards,
Ivan.

PS: attached main.cpp is compiled with g++ 4.4.1, -std=c++0x, "my" bind.hpp in
same directory, and boost 1.40 in include path.





Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk