Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2006-05-07 14:06:44


Tobias Schwinger <tschwinger_at_[hidden]> writes:

> For those about to reply "don't use is_sequence" please answer this
> question first:
>
> How to traverse a tree where the nodes are sequences and the leafes
> are mpl::intS without it?

Just reformulate the tree so that nodes are all wrapped in something
you can recognize reliably:

     tree<
         list<
             tree<vector<int, long> >
           , tree<vector<long,int> >
>
>

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk