From 4315d0440bdef07567fb39b8f53b281c514e534f Mon Sep 17 00:00:00 2001 From: Jeremy Siek Date: Tue, 19 Dec 2000 18:21:38 +0000 Subject: [PATCH] updated refs to REQUIRE (changed to function_requires) [SVN r8479] --- creating_concepts.htm | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/creating_concepts.htm b/creating_concepts.htm index 10ade8a..1d22fc5 100644 --- a/creating_concepts.htm +++ b/creating_concepts.htm @@ -27,10 +27,9 @@ at how to create the corresponding checks for the RandomAccessIterator concept. First, as a convention we name the concept checking class after the concept, and add the suffix -``_concept''. Note that the REQUIRE macro expects -the suffix to be there. Next we must define a member function named +``Concept''. Next we must define a member function named constraints() in which we will exercise the valid expressions -of the concept. The REQUIRE macro expects this function's +of the concept. function_requires() expects this function's signature to appear exactly as it is appears below: a void non-const member function with no parameters. @@ -43,8 +42,8 @@ RandomAccessIterator and the concepts which it builds upon: BidirectionalIterator and LessThanComparable. We could have instead used -CLASS_REQUIRES and placed these requirements in the class -body, however CLASS_REQUIRES uses C++ language features that +BOOST_CLASS_REQUIRES and placed these requirements in the class +body, however BOOST_CLASS_REQUIRES uses C++ language features that are less portable.