
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.