Boost logo

Boost Users :

Subject: [Boost-users] [mpl] how can I pattern-match a 'built' mpl::vector?
From: Rob Desbois (rob.desbois_at_[hidden])
Date: 2012-03-26 08:23:07


I have an mpl::vector that is built by a series of push_back ops, and want
to traverse at runtime using mpl::for_each<v>( do_sth() )
A member type may also be an mpl::vector, and in this case I wish to
specialise do_sth::operator() for that case.

I'm having trouble doing that, since the result of push_back is not an
mpl::vector type, so how do I go about matching this?

TIA -- rob

-- 
Rob Desbois
http://theotherbranch.wordpress.com/
"I disapprove of what you say, but I’ll defend to the death your right to
say it", Voltaire


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