
26 Sep
2008
26 Sep
'08
5:10 p.m.
Joel de Guzman wrote:
Mathias Gaunard wrote:
I thought bind was supposed to generate monomorphic functors when used with function pointers, pointers to members, or monomorphic functors. Yet the functors it generates don't expose result_type, but only the result template.
If that's the case, then it's a bug.
A simple example: int foo() { return 0; } struct bar { typedef int result_type; int operator()() { return 0; } }; Neither bind(foo) nor bind(bar()) seem to have a result_type.