Changeset 3376


Ignore:
Timestamp:
Feb 11, 2015, 11:28:17 AM (7 years ago)
Author:
Peter
Message:

use weighted_iterator_traits in test for weighted_iterator_archetype

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/weighted_iterator_archetype.cc

    r3314 r3376  
    22
    33/*
    4   Copyright (C) 2014 Peter Johansson
     4  Copyright (C) 2014, 2015 Peter Johansson
    55
    66  This file is part of the yat library, http://dev.thep.lu.se/yat
     
    3333
    3434#include "yat/utility/concept_check.h"
     35#include "yat/utility/iterator_traits.h"
    3536
    3637#include <boost/iterator/iterator_archetypes.hpp>
     
    114115                                            TraversalCategory>
    115116    ConstIterator;
     117  typedef typename utility::weighted_iterator_traits<ConstIterator>::type tag1;
    116118  ConstIterator ci(arg);
    117119  test_const_access(ci);
     
    122124  typedef test::weighted_iterator_archetype<readable_writable_iterator_t,
    123125                                            TraversalCategory> Iterator;
     126
     127  typedef typename utility::weighted_iterator_traits<Iterator>::type tag2;
    124128  Iterator i(arg);
    125129  test_access(i);
Note: See TracChangeset for help on using the changeset viewer.