
23 Jul
2012
23 Jul
'12
8:05 p.m.
AMDG On 07/23/2012 10:56 AM, Eric Niebler wrote:
+1. For the record, I got hung up in the tutorial in exactly the same place as the OP. Had there been a more extensive description of tuple, why it's needed, and a who-knows-what-and-when about the different objects in play -- including the any's returned by get -- it would have been much easier.
I've changed the example to show how to do this without tuple first. The key to understanding this is that tuple<requirements, _a, _b> is just shorthand for creating the anys with an mpl::map<mpl::pair<_a, int*>, mpl::pair<_b, int> > In Christ, Steven Watanabe