Boost logo

Boost Users :

From: gast128 (gast128_at_[hidden])
Date: 2008-06-05 16:50:41


..snip

> you can write
>
> // .hpp
> // no multi_index includes
> class my_class{
> ...
> typedef adobe::any_iterator<..., std::bidirectional_iterator_tag>
> iterator;
> iterator foo();
> };
>
> The price to pay for hiding behind adobe::any_iterator is that iteration
> with this
> construct is slower than the original case (polymorphic calls are involved.)

this would do the trick as I orignal proposed. Still the c++ build system
needs a revision as well since
more and more template (trick)s are used?


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net