Changeset 2171


Ignore:
Timestamp:
Jan 27, 2010, 5:08:35 AM (12 years ago)
Author:
Peter
Message:

fixes #588

Location:
branches/0.6-stable
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/0.6-stable/test/averager_test.cc

    r2169 r2171  
    209209    suite.err() << "error: correlation between identical vectors is unity"
    210210                << std::endl;
     211  }
     212  // do not run compile test
     213  if (false) {
     214    AveragerPair ap3;
     215    add(ap3, boost::input_iterator_archetype<double>(),
     216        boost::input_iterator_archetype<double>(),
     217        boost::input_iterator_archetype<double>());
    211218  }
    212219
  • branches/0.6-stable/yat/statistics/AveragerPair.h

    r2119 r2171  
    2929
    3030#include "yat/utility/iterator_traits.h"
     31
     32#include <boost/concept_check.hpp>
    3133
    3234#include <cmath>
     
    164166     \relates AveragerPair
    165167   */
    166   template <class Iter1, class Iter2>
    167   void add(AveragerPair& ap, Iter1 first1, Iter1 last1, Iter2 first2)
     168  template <class InputIterator1, class InputIterator2>
     169  void add(AveragerPair& ap, InputIterator1 first1, InputIterator1 last1,
     170           InputIterator2 first2)
    168171  {
     172    BOOST_CONCEPT_ASSERT((boost::InputIterator<InputIterator1>));
     173    BOOST_CONCEPT_ASSERT((boost::InputIterator<InputIterator2>));
    169174    utility::check_iterator_is_unweighted(first1);
    170175    utility::check_iterator_is_unweighted(first2);
Note: See TracChangeset for help on using the changeset viewer.