
21 May
2007
21 May
'07
8:19 p.m.
Daniel Walker wrote:
Incidentally, we do know how to test for member templates now. Here's a thread archive discussing my patch to MPL that does this: http://tinyurl.com/2os8fl.
So, it would be possible to implement a result_of that deduces the correct return type in corner cases like your example without decltype. But decltype is a much better all around solution.
Can you comment on why some of your tests fail with Comeau? I haven't looked into your patch, but if it doesn't work with Comeau, there's a good chance it's non-standard, which would be a deal-breaker for tr1::result_of. -- Eric Niebler Boost Consulting www.boost-consulting.com