From 06b61f540776cfb83f0f54fb5d0a11c6b73131e3 Mon Sep 17 00:00:00 2001
From: Edward Diener The template argument is the type to be checked. That is, the purpose of
- EqualityComparable<X> is to make sure that
- X models the EqualityComparable concept.
stable_sort
- algorithm might be declared as follows: class
+ algorithm might be declared as follows:
-template<typename RanIter> +class template<typename RanIter> BOOST_CONCEPT_REQUIRES( ((Mutable_RandomAccessIterator<RanIter>)) ((LessThanComparable<typename Mutable_RandomAccessIterator<RanIter>::value_type>)), From 3df02ba00e685f307cb7638498f565b7df991b20 Mon Sep 17 00:00:00 2001 From: Edward DienerDate: Tue, 4 Apr 2017 08:12:27 -0400 Subject: [PATCH 2/2] Correction of previous fix. --- using_concept_check.htm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/using_concept_check.htm b/using_concept_check.htm index 2fd5218..80c95cb 100644 --- a/using_concept_check.htm +++ b/using_concept_check.htm @@ -114,7 +114,7 @@ int main() { also be parenthesized. For example, the standard stable_sort
algorithm might be declared as follows:-class template<typename RanIter> +template <class RanIter> BOOST_CONCEPT_REQUIRES( ((Mutable_RandomAccessIterator<RanIter>)) ((LessThanComparable<typename Mutable_RandomAccessIterator<RanIter>::value_type>)),