[concept_check] convert Concept to trait?

I don't see a place to open issues on
https://github.com/boostorg/concept_check so I am posting this here.
What I want to do is convert a concept into a trait. For example,
given the ForwardIterator concept checking class, I would like to
write:
template<T>
using is_ForwardIterator = std::integral_constant

On Tue, 2016-10-04 at 10:55 -0400, Vinnie Falco wrote:
It's not really possible. Boost.ConceptCheck uses hard errors to check concepts, and then tries to inject the concept name in to the error message to make it clearer why it failed. Alternatively, you can use the Tick library, which is being proposed for Boost. It already has a trait for checking `ForwardIterator`, here: https://github.com/pfultz2/Tick/blob/master/tick/traits/is_forward_iter ator.h Paul
participants (3)
-
paul
-
Robert Ramey
-
Vinnie Falco