|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2008-01-31 22:18:19
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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk