Hallo, I would like to override operators for boost::function. Forexample I was thinking of an operator "-" : template <T> function<T> operator - (const function<T>& a) { // what do I write here in roder to return the symmetric function? } Thanks Stefano
sboschi75-personal@yahoo.it wrote:
Hallo,
I would like to override operators for boost::function.
Hi Stefano, in future, please use more specific subject for your postings. Also, putting your full name in the "From" line is considered more polite than using "sboschi75"
Forexample I was thinking of an operator "-" :
template <T> function<T> operator - (const function<T>& a) { // what do I write here in roder to return the symmetric function? }
The following works for me.
#include
participants (2)
-
sboschi75-personal@yahoo.it
-
Vladimir Prus