2 Mar
2008
2 Mar
'08
2:41 p.m.
I wrote some code using boost.function. Compiling it both in g++4.13 and
vc8, I find that I can not declare a struct in function with operator() and
use boost.function to call it when I use g++. Just like this:
int main() {
struct int_div {
float operator()(int x, int y) const { return ((float)x)/y; };
};
boost::function