Changeset 3379


Ignore:
Timestamp:
Feb 13, 2015, 12:22:36 PM (7 years ago)
Author:
Peter
Message:

avoid using weighted_iterator_archetype with incrementable_traversal_tag. note, should reflect this in docs and concept checks in library as well. refs #803

Location:
trunk/test
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/iterator.cc

    r3375 r3379  
    361361{
    362362  typedef boost::iterator_archetypes::readable_iterator_t Access;
    363   typedef boost::incrementable_traversal_tag Traversal;
     363  typedef boost::single_pass_traversal_tag Traversal;
    364364  if (false) {
    365365    typedef test::weighted_iterator_archetype<Access, Traversal> I;
     
    419419    // test unweighted iterator
    420420    typedef boost::iterator_archetypes::readable_iterator_t Access;
    421     typedef boost::incrementable_traversal_tag Traversal;
     421    typedef boost::single_pass_traversal_tag Traversal;
    422422    // test unweighted iterator
    423423    {
  • trunk/test/weighted_iterator_archetype.cc

    r3377 r3379  
    144144  // this is a compilation test - do not run
    145145  if (false) {
    146     test1<boost::incrementable_traversal_tag>();
     146    //test1<boost::incrementable_traversal_tag>();
    147147    test1<boost::single_pass_traversal_tag>();
    148148    test1<boost::forward_traversal_tag>();
  • trunk/test/weighted_iterator_archetype.h

    r3373 r3379  
    104104
    105105    TraversalCategory is one of the boost categories:
    106     boost::incrementable_traversal_tag
     106    // currently not working boost::incrementable_traversal_tag
    107107    boost::single_pass_traversal_tag
    108108    boost::forward_traversal_tag
     
    123123    // constructors
    124124    weighted_iterator_archetype(void) { is_forward(TraversalCategory()); }
    125     weighted_iterator_archetype(ctor_arg arg) {}
     125    weighted_iterator_archetype(ctor_arg arg)
     126    {
     127      // Category incrementable_traversal_tag is problematic on
     128      // certain systems, so avoid usage.
     129      is_single_pass(TraversalCategory());
     130    }
    126131
    127132    // Create an iterator from a mutable iterator, i.e., this is a
Note: See TracChangeset for help on using the changeset viewer.