
1 Feb
2008
1 Feb
'08
3:18 a.m.
on Wed Jan 30 2008, Johan Torp <johan.torp-AT-gmail.com> wrote:
Is there any way to combine boost::enable_if and the concept check library? For instance to disable a function overload for template parameters which doesn't model some STL concept.
Nope. Those concepts perform checks that cause hard compile-time errors. Once they've failed, it's too late to recover... and not all concept check failures can be converted to non-error true/false results in C++03. -- Dave Abrahams Boost Consulting http://boost-consulting.com