Changeset 3523


Ignore:
Timestamp:
Oct 10, 2016, 9:59:58 AM (7 years ago)
Author:
Peter
Message:

refs #803. use new iterator concepts. Require forward traversal and readable iterator rather than std::forward_iterator

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/statistics/KolmogorovSmirnov.h

    r3295 r3523  
    2424*/
    2525
     26#include "yat/utility/concept_check.h"
     27
    2628#include <boost/concept_check.hpp>
     29#include <boost/iterator/iterator_concepts.hpp>
    2730
    2831#include <iosfwd>
     
    9497       \brief add a range
    9598
    96        value_type of \a ForwardIterator must be convertible to
    97        KolmogorovSmirnov::Element
     99       Type Requirements:
     100       - \c ForwardIterator models \readable_iterator
     101       - \c ForwardIterator models \forward_traversal_iterator
     102       - \c value_type of \c ForwardIterator must be convertible to
     103       \c KolmogorovSmirnov::Element
    98104
    99105       Insertion takes typically N*log(N). However, if range is
     
    213219  void KolmogorovSmirnov::add(ForwardIterator first, ForwardIterator last)
    214220  {
    215     BOOST_CONCEPT_ASSERT((boost::ForwardIterator<ForwardIterator>));
     221    BOOST_CONCEPT_ASSERT((boost_concepts::ForwardTraversal<ForwardIterator>));
     222    BOOST_CONCEPT_ASSERT((boost_concepts::ReadableIterator<ForwardIterator>));
    216223    ForwardIterator iter(first);
    217224    typename data_w::const_iterator hint(data_.begin());
Note: See TracChangeset for help on using the changeset viewer.