
28 Apr
2011
28 Apr
'11
8:13 p.m.
If you want the function to fail anyway, why not use the first version (that doesn't SFINAE on errors)? Otherwise, try changing your !decltype version to:
template
Range find(Range && haystack, const T& elem, ...) { // body }
The problem is that I want meaningful error messages, and for that the assertion should be printed when compiling but it does not.
-- Jeremiah Willcock _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users