
6 Sep
2011
6 Sep
'11
1:29 a.m.
on Mon Sep 05 2011, Allan Johns <allan.johns-AT-drdstudios.com> wrote:
boost aside, this article is a great working example of a hand-rolled SFINAE approach
http://www.martinecker.com/wiki/index.php?title=Detecting_the_Existence_of_O...
Good article. That solution breaks if the operator== returns void. You can work around that with techniques shown in boost/detail/is_incrementable.hpp, but even that technique can break down if there's a user-defined comma operator. They all break if operator== is private. -- Dave Abrahams BoostPro Computing http://www.boostpro.com