Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost Concepts with iterators and ranges
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2011-02-21 05:38:50


On 21/02/2011 08:07, Robert Ramey wrote:
> I've been experimenting with Boost Concepts in conjunction with Boost Range
> and by implication
> boost iterators. I have a few questions from the documentation:
>
> a) I see BOOST_CONCEPT_USAGE described in some detail in the section
> Creating Concept Checking Classes. But in the section titled "Reference" I
> only
> find in the subsection "macros" BOOST_CONCEPT_ASSERT and
> BOOST_CONCEPT_REQUIRES.
> Is BOOST_CONCEPT_USAGE meant to be used?

BOOST_CONCEPT_USAGE is for defining a concept, the others are for
checking that types model concepts.

> All this makes it very hard to keep all this straight in one's head. Is
> there any
> possibility that all this could be made simpler to follow by some
> combination
> of documentation improvements and/or namespace coordination?

The Range concepts simply use the older concept check naming
conventions, while the iterator concepts use the newer ones.


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