From 6f057b7c08200d32e850256525b68ac692f6ad3d Mon Sep 17 00:00:00 2001 From: Jeremy Siek Date: Tue, 17 Jul 2001 16:37:42 +0000 Subject: [PATCH] added const to some member functions [SVN r10641] --- include/boost/concept_archetype.hpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/include/boost/concept_archetype.hpp b/include/boost/concept_archetype.hpp index 14b3b64..28bdb28 100644 --- a/include/boost/concept_archetype.hpp +++ b/include/boost/concept_archetype.hpp @@ -7,6 +7,7 @@ // // Revision History: // +// 17 July 2001: Added const to some member functions. (Jeremy Siek) // 05 May 2001: Removed static dummy_cons object. (Jeremy Siek) #ifndef BOOST_CONCEPT_ARCHETYPES_HPP @@ -630,10 +631,10 @@ namespace boost { { return difference_type(); } self operator+(difference_type) const { return *this; } self operator-(difference_type) const { return *this; } - bool operator<(const self&) { return true; } - bool operator<=(const self&) { return true; } - bool operator>(const self&) { return true; } - bool operator>=(const self&) { return true; } + bool operator<(const self&) const { return true; } + bool operator<=(const self&) const { return true; } + bool operator>(const self&) const { return true; } + bool operator>=(const self&) const { return true; } }; template random_access_iterator_archetype @@ -670,10 +671,10 @@ namespace boost { { return difference_type(); } self operator+(difference_type) const { return *this; } self operator-(difference_type) const { return *this; } - bool operator<(const self&) { return true; } - bool operator<=(const self&) { return true; } - bool operator>(const self&) { return true; } - bool operator>=(const self&) { return true; } + bool operator<(const self&) const { return true; } + bool operator<=(const self&) const { return true; } + bool operator>(const self&) const { return true; } + bool operator>=(const self&) const { return true; } }; template mutable_random_access_iterator_archetype