Boost logo

Boost Users :

Subject: [Boost-users] [bccl] how to use predefined concepts to restrict a template argument via sfinae
From: Nick Stokes (randomaccessiterator_at_[hidden])
Date: 2015-05-13 18:28:14


The use case is from Boost Graph, but my question is a general one about
Boost Concept Check Library: How to "restrict" a template class/function
argument based on concepts.

For instance, I want to overload functions based on Graph or
VertexListGraph or similar refinement.

template<class VertexListGraph, XXX >
void foo( VertexListGraph& g ) {...}

where XXX is somekind of SFINAE that leverages
boost::VertexListGraphConcept.

Thanks,
Nick



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net