forked from boostorg/concept_check
added const to some member functions
[SVN r10641]
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
//
|
//
|
||||||
// Revision History:
|
// Revision History:
|
||||||
//
|
//
|
||||||
|
// 17 July 2001: Added const to some member functions. (Jeremy Siek)
|
||||||
// 05 May 2001: Removed static dummy_cons object. (Jeremy Siek)
|
// 05 May 2001: Removed static dummy_cons object. (Jeremy Siek)
|
||||||
|
|
||||||
#ifndef BOOST_CONCEPT_ARCHETYPES_HPP
|
#ifndef BOOST_CONCEPT_ARCHETYPES_HPP
|
||||||
@@ -630,10 +631,10 @@ namespace boost {
|
|||||||
{ return difference_type(); }
|
{ return difference_type(); }
|
||||||
self operator+(difference_type) const { return *this; }
|
self operator+(difference_type) const { return *this; }
|
||||||
self operator-(difference_type) const { return *this; }
|
self operator-(difference_type) const { return *this; }
|
||||||
bool operator<(const self&) { return true; }
|
bool operator<(const self&) const { return true; }
|
||||||
bool operator<=(const self&) { return true; }
|
bool operator<=(const self&) const { return true; }
|
||||||
bool operator>(const self&) { return true; }
|
bool operator>(const self&) const { return true; }
|
||||||
bool operator>=(const self&) { return true; }
|
bool operator>=(const self&) const { return true; }
|
||||||
};
|
};
|
||||||
template <class T>
|
template <class T>
|
||||||
random_access_iterator_archetype<T>
|
random_access_iterator_archetype<T>
|
||||||
@@ -670,10 +671,10 @@ namespace boost {
|
|||||||
{ return difference_type(); }
|
{ return difference_type(); }
|
||||||
self operator+(difference_type) const { return *this; }
|
self operator+(difference_type) const { return *this; }
|
||||||
self operator-(difference_type) const { return *this; }
|
self operator-(difference_type) const { return *this; }
|
||||||
bool operator<(const self&) { return true; }
|
bool operator<(const self&) const { return true; }
|
||||||
bool operator<=(const self&) { return true; }
|
bool operator<=(const self&) const { return true; }
|
||||||
bool operator>(const self&) { return true; }
|
bool operator>(const self&) const { return true; }
|
||||||
bool operator>=(const self&) { return true; }
|
bool operator>=(const self&) const { return true; }
|
||||||
};
|
};
|
||||||
template <class T>
|
template <class T>
|
||||||
mutable_random_access_iterator_archetype<T>
|
mutable_random_access_iterator_archetype<T>
|
||||||
|
Reference in New Issue
Block a user