diff --git a/include/boost/iterator/iterator_concepts.hpp b/include/boost/iterator/iterator_concepts.hpp index 663917e..50e5546 100644 --- a/include/boost/iterator/iterator_concepts.hpp +++ b/include/boost/iterator/iterator_concepts.hpp @@ -98,38 +98,17 @@ namespace boost_concepts { }; template - class ReadableLvalueIteratorConcept + class LvalueIteratorConcept { public: typedef typename boost::detail::iterator_traits::value_type value_type; - void constraints() { - boost::function_requires< ReadableIteratorConcept >(); - const value_type& v = *i; - boost::ignore_unused_variable_warning(v); - } + const value_type& r = *i; + } Iterator i; }; - template - class WritableLvalueIteratorConcept { - public: - typedef typename boost::detail::iterator_traits::value_type value_type; - typedef typename boost::detail::iterator_traits::reference reference; - - void constraints() { - boost::function_requires< - ReadableLvalueIteratorConcept >(); - boost::function_requires< - WritableIteratorConcept >(); - boost::function_requires< - SwappableIteratorConcept >(); - - - BOOST_STATIC_ASSERT((boost::is_same::value)); - } - }; //=========================================================================== // Iterator Traversal Concepts