lists.preview.boost.org
Sign In Sign Up
Manage this list Sign In Sign Up

Keyboard Shortcuts

Thread View

  • j: Next unread message
  • k: Previous unread message
  • j a: Jump to all threads
  • j l: Jump to MailingList overview
newer
boost::variant: Wrapping C-struct...

[mpl][fusion] iteration over mutiple containers

older
[Random] random_device and windows...

Manfred Doudar

1 Jun 2010 1 Jun '10
11:37 a.m.

Hello, I've been using the Boost.PP lately, and everything now works rather nicely, but there's been a thing in the back of my head that has always been telling me, that the problem is better suited to mpl/fusion. The problem in this case is I have "two things" that need to be iterated over, one a series of tags (aka "types"), and the the other, a runtime index. I'll express what I'm after with mpl::for_each, because the issue becomes clearer that way: using namespace boost; //Func: is an object that facilitates visitation on algorithms template