Combine enable_if and concept check
 
            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. Best Regards, Johan Torp -- View this message in context: http://www.nabble.com/Combine-enable_if-and-concept-check-tp15181277p1518127... Sent from the Boost - Dev mailing list archive at Nabble.com.
 
            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
participants (2)
- 
                 David Abrahams David Abrahams
- 
                 Johan Torp Johan Torp