Changeset 3521
- Timestamp:
- Oct 7, 2016, 9:37:06 AM (7 years ago)
- Location:
- trunk/yat/utility
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/utility/DataIterator.h
r3417 r3521 24 24 */ 25 25 26 #include "concept_check.h" 26 27 #include "iterator_traits.h" 27 28 … … 77 78 : DataIterator::iterator_adaptor_(b) 78 79 { 79 BOOST_CONCEPT_ASSERT(( boost::InputIterator<Base>));80 BOOST_CONCEPT_ASSERT((DataIteratorConcept<Base>)); 80 81 } 81 82 … … 88 89 : DataIterator::iterator_adaptor_() 89 90 { 90 BOOST_CONCEPT_ASSERT(( boost::InputIterator<Base>));91 BOOST_CONCEPT_ASSERT((DataIteratorConcept<Base>)); 91 92 } 92 93 … … 101 102 DataIterator(DataIterator<B2> other, 102 103 typename boost::enable_if_convertible<B2, Base>::type* = 0 ) 103 : DataIterator::iterator_adaptor_(other.base()) {} 104 : DataIterator::iterator_adaptor_(other.base()) 105 { 106 BOOST_CONCEPT_ASSERT((DataIteratorConcept<Base>)); 107 } 104 108 105 109 /** -
trunk/yat/utility/WeightIterator.h
r3506 r3521 24 24 */ 25 25 26 #include "concept_check.h" 26 27 #include "iterator_traits.h" 27 28 … … 57 58 \endcode 58 59 59 Type Requirement: \c BASE must be a \readable_iterator 60 Type Requirement: 61 - \c BASE must model a \ref concept_data_iterator 60 62 */ 61 63 template<typename Base> … … 79 81 : WeightIterator::iterator_adaptor_() 80 82 { 81 BOOST_CONCEPT_ASSERT(( boost_concepts::ReadableIterator<Base>));83 BOOST_CONCEPT_ASSERT((DataIteratorConcept<Base>)); 82 84 } 83 85 … … 88 90 : WeightIterator::iterator_adaptor_(b) 89 91 { 90 BOOST_CONCEPT_ASSERT(( boost_concepts::ReadableIterator<Base>));92 BOOST_CONCEPT_ASSERT((DataIteratorConcept<Base>)); 91 93 } 92 94 … … 102 104 WeightIterator(WeightIterator<B2> other, 103 105 typename boost::enable_if_convertible<B2, Base>::type* = 0 ) 104 : WeightIterator::iterator_adaptor_(other.base()) {} 106 : WeightIterator::iterator_adaptor_(other.base()) 107 { 108 BOOST_CONCEPT_ASSERT((boost_concepts::ReadableIterator<Base>)); 109 } 105 110 106 111 /**
Note: See TracChangeset
for help on using the changeset viewer.