
5 Jan
2011
5 Jan
'11
12:20 p.m.
Hi, Howard Hinnant <howard.hinnant <at> gmail.com> writes:
I'm not sure if it is desirable though. It is an awful lot of if-checking added to the algorithm. All that checking would tend to penalize those clients not wanting to break out early.
Couldn't the checks for early breaks be removed at compile-time by using callable returning a convertible to bool instead of a bool ? At least it appears to do so when returning a boost::mpl::bool_<false> with g++ at default optimization level.[*] Best Regards, Bernard [*] http://paste.debian.net/103792/