Changeset 2150


Ignore:
Timestamp:
Jan 17, 2010, 4:54:55 AM (12 years ago)
Author:
Peter
Message:

fixes #584

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/normalization_test.cc

    r2149 r2150  
    186186             suite.equal_fix(m2(2,0),result2(1,1),1.0e-12) &&
    187187             suite.equal_fix(m2(3,0),result2(0,1),1.0e-12) );
     188  // compile test should not be run
     189  if (false) {
     190    qQuantileNormalizer qqn3(boost::forward_iterator_archetype<double>(),
     191                             boost::forward_iterator_archetype<double>(),
     192                             100);
     193    qqn3(boost::random_access_iterator_archetype<double>(),
     194         boost::random_access_iterator_archetype<double>(),
     195         boost::mutable_random_access_iterator_archetype<double>());
     196  }
    188197}
    189198
  • trunk/yat/normalizer/qQuantileNormalizer.h

    r2141 r2150  
    3030#include "yat/utility/WeightIterator.h"
    3131#include "yat/utility/yat_assert.h"
     32
     33#include <boost/concept_check.hpp>
    3234
    3335#include <algorithm>
     
    252254                                 utility::unweighted_iterator_tag tag) const
    253255  {
     256    using boost::function_requires;
     257    function_requires<boost::RandomAccessIterator<RandomAccessIterator1> >();
     258    function_requires<boost::Mutable_RandomAccessIterator<RandomAccessIterator2> >();
    254259    utility::check_iterator_is_unweighted(first);
    255260    utility::check_iterator_is_unweighted(result);
     
    311316                                      utility::weighted_iterator_tag tag) const
    312317  {
     318    using boost::function_requires;
     319    function_requires<boost::RandomAccessIterator<RandomAccessIterator1> >();
     320    function_requires<boost::Mutable_RandomAccessIterator<RandomAccessIterator2> >();
    313321    // copy the weights
    314322    std::copy(utility::weight_iterator(first),
     
    376384    : average_(utility::Vector(N)), quantiles_(utility::Vector(N))
    377385  {
     386    boost::function_requires<boost::ForwardIterator<ForwardIterator> >();
    378387    build(first, last, N,
    379388          typename utility::weighted_iterator_traits<ForwardIterator>::type());
Note: See TracChangeset for help on using the changeset viewer.