
5 Jun
2008
5 Jun
'08
8:50 p.m.
..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?