Ignore:
Timestamp:
Feb 13, 2015, 12:22:36 PM (9 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.