
7 Oct
2008
7 Oct
'08
6:30 p.m.
Daniel Walker wrote:
So, I tried your suggestion with gcc 4.4, but I got an error.
Well, to be honest I didn't test it fully. If you call it with a type that doesn't have a foo member function, the overload is indeed masked. I don't know why it doesn't work when using &&, must be a bug. Of course, the fact that it produces ICE shows it's a bug in itself. I don't really know what really works and what doesn't atm. The first example of this link, however, seems to work: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2634.html I am fairly disappointed to see it actually doesn't work :(. Hopefully it will be fixed before the 4.4 release.