Boost Users :
Subject: Re: [Boost-users] Boost::mpl vector product
From: Larry Evans (cppljevans_at_[hidden])
Date: 2012-01-30 10:32:55
On 01/23/12 02:03, Allan Nielsen wrote:
> Cool thanks a lot
> Best regards
> Allan W. Nielsen
> On Sun, Jan 22, 2012 at 7:41 PM, Larry Evans <cppljevans_at_[hidden]> wrote:
>> On 01/22/12 12:03, Larry Evans wrote:
>>> The attached code uses variadic templates and code from:
>>> and does what you want except, instead of mpl::pair, it produces
>>> an mpl::vector whose size is the number of mpl sequences
>>> on input.
>> OOPS, forgot outer_product_pack, which is attached.
You might also have a look at Abel Sinkovics metaprogramming library:
I, as yet, have no idea of how to do what you want with
Abel's library; however, I'd guess it could be done.
In particular, I know list comprehensions:
( which are, AFAICT, flattened outer products)
can be done with monads which Abel's library supplies.
Maybe you could ask Abel how to do this with his
library. I'd be interested in seeing that.
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