Changeset 3385


Ignore:
Timestamp:
Mar 13, 2015, 8:55:49 AM (8 years ago)
Author:
Peter
Message:

refs #803

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/CigarIterator.h

    r3372 r3385  
    55
    66/*
    7   Copyright (C) 2014 Peter Johansson
     7  Copyright (C) 2014, 2015 Peter Johansson
    88
    99  This file is part of the yat library, http://dev.thep.lu.se/yat
     
    2525#include "Cigar.h"
    2626
     27#include <boost/concept_check.hpp>
    2728#include <boost/cstdint.hpp>
    2829#include <boost/iterator/iterator_facade.hpp>
    2930#include <boost/iterator/iterator_categories.hpp>
     31#include <boost/iterator/iterator_concepts.hpp>
    3032
    3133#include <cstddef> // for size_t
     
    9496
    9597  template<typename BASE>
    96   CigarIterator<BASE>::CigarIterator(void) {}
     98  CigarIterator<BASE>::CigarIterator(void)
     99  {
     100    BOOST_CONCEPT_ASSERT((boost_concepts::ReadableIterator<BASE>));
     101    BOOST_CONCEPT_ASSERT((boost_concepts::BidirectionalTraversal<BASE>));
     102  }
    97103
    98104
    99105  template<typename BASE>
    100106  CigarIterator<BASE>::CigarIterator(BASE b, size_t x)
    101     : base_(b), index_(x) {}
     107    : base_(b), index_(x)
     108  {
     109    BOOST_CONCEPT_ASSERT((boost_concepts::ReadableIterator<BASE>));
     110    BOOST_CONCEPT_ASSERT((boost_concepts::BidirectionalTraversal<BASE>));
     111  }
    102112
    103113
Note: See TracChangeset for help on using the changeset viewer.