Changeset 3521


Ignore:
Timestamp:
Oct 7, 2016, 9:37:06 AM (7 years ago)
Author:
Peter
Message:

refs #803

In WeightIterator? and DataIterator? require that BASE models concept
DataIterator? directly (rather than implicit requirements).

Location:
trunk/yat/utility
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/DataIterator.h

    r3417 r3521  
    2424*/
    2525
     26#include "concept_check.h"
    2627#include "iterator_traits.h"
    2728
     
    7778      : DataIterator::iterator_adaptor_(b)
    7879    {
    79       BOOST_CONCEPT_ASSERT((boost::InputIterator<Base>));
     80      BOOST_CONCEPT_ASSERT((DataIteratorConcept<Base>));
    8081    }
    8182
     
    8889      : DataIterator::iterator_adaptor_()
    8990    {
    90       BOOST_CONCEPT_ASSERT((boost::InputIterator<Base>));
     91      BOOST_CONCEPT_ASSERT((DataIteratorConcept<Base>));
    9192    }
    9293
     
    101102    DataIterator(DataIterator<B2> other,
    102103                 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    }
    104108
    105109    /**
  • trunk/yat/utility/WeightIterator.h

    r3506 r3521  
    2424*/
    2525
     26#include "concept_check.h"
    2627#include "iterator_traits.h"
    2728
     
    5758     \endcode
    5859
    59     Type Requirement: \c BASE must be a \readable_iterator
     60    Type Requirement:
     61    - \c BASE must model a \ref concept_data_iterator
    6062  */
    6163  template<typename Base>
     
    7981      : WeightIterator::iterator_adaptor_()
    8082    {
    81       BOOST_CONCEPT_ASSERT((boost_concepts::ReadableIterator<Base>));
     83      BOOST_CONCEPT_ASSERT((DataIteratorConcept<Base>));
    8284    }
    8385
     
    8890      : WeightIterator::iterator_adaptor_(b)
    8991    {
    90       BOOST_CONCEPT_ASSERT((boost_concepts::ReadableIterator<Base>));
     92      BOOST_CONCEPT_ASSERT((DataIteratorConcept<Base>));
    9193    }
    9294
     
    102104    WeightIterator(WeightIterator<B2> other,
    103105                   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    }
    105110
    106111    /**
Note: See TracChangeset for help on using the changeset viewer.