Changeset 3377


Ignore:
Timestamp:
Feb 11, 2015, 12:09:27 PM (7 years ago)
Author:
Peter
Message:

check that iterators are weighted

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/weighted_iterator_archetype.cc

    r3376 r3377  
    3838#include <boost/iterator/iterator_categories.hpp>
    3939#include <boost/iterator/iterator_concepts.hpp>
     40#include <boost/static_assert.hpp>
     41#include <boost/type_traits.hpp>
    4042
    4143using namespace theplu::yat;
     
    116118    ConstIterator;
    117119  typedef typename utility::weighted_iterator_traits<ConstIterator>::type tag1;
     120  using utility::weighted_iterator_tag;
     121  using boost::is_same;
     122  BOOST_STATIC_ASSERT((is_same<tag1, weighted_iterator_tag>::type::value));
    118123  ConstIterator ci(arg);
    119124  test_const_access(ci);
     
    126131
    127132  typedef typename utility::weighted_iterator_traits<Iterator>::type tag2;
     133  BOOST_STATIC_ASSERT((is_same<tag2, weighted_iterator_tag>::type::value));
    128134  Iterator i(arg);
    129135  test_access(i);
Note: See TracChangeset for help on using the changeset viewer.