From: Anthony Williams (anthony_w.geo_at_[hidden])
Date: 2008-05-08 02:38:51
Terje Slettebø <tslettebo_at_[hidden]> writes:
>>From: "Anthony Williams" <anthony_w.geo_at_[hidden]>
>> Does the boost concept checking library support overloading on concepts,
>> you can have one implementation of an algorithm for random access
>> and another for bidirectional iterators, for example?
> As someone was pointed out in another posting, you can't use BCCL for this,
> since the checks fail with a compile error if a concept doesn't match.
> However, if you're able to define compile-time traits performing the concept
> check, then you _can_ overload on concepts, using enable_if. See the Concept
> Traits Library
> ger/boostdev/concept_traits/libs/concept_traits/doc/) for an approach to
Thanks. That's essentially what I was trying to do. I'll see if there's
anything in there I can use.
-- Anthony Williams | Just Software Solutions Ltd Custom Software Development | http://www.justsoftwaresolutions.co.uk Registered in England, Company Number 5478976. Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk