Re: [Boost-users] [boost] [switch_] Compound Cases [was Case Concept]

AMDG Joel de Guzman wrote:
Steven Watanabe wrote:
Also, one thing that needs to be nailed down is: What Is I? Tobias was using it as the index into the list of labels: mpl::int_<0>, mpl::int_<1>, mpl::int_<2>, ... In my original interface and as you seem to be using it I is one of: mpl::at_c<labels, 0>::type, mpl::at_c<labels, 1>::type, mpl::at_c<labels, 2>::type
It's in the concept I presented:
I An MPL Integral Constant type
Here:
http://boost.org/libs/mpl/doc/refmanual/integral-constant.html
Anything special I am missing?
What I meant was where they come from and thus how they should be interpreted. If you have mpl::vector_c<int, 4,2, 7> do you get mpl::int_<0>, mpl::int_<1>, and mpl::int_<2> or mpl::int_<4>, mpl::int_<2>, and mpl::int_<7>? In Christ, Steven Watanabe

Steven Watanabe wrote:
AMDG
Joel de Guzman wrote:
Steven Watanabe wrote:
Also, one thing that needs to be nailed down is: What Is I? Tobias was using it as the index into the list of labels: mpl::int_<0>, mpl::int_<1>, mpl::int_<2>, ... In my original interface and as you seem to be using it I is one of: mpl::at_c<labels, 0>::type, mpl::at_c<labels, 1>::type, mpl::at_c<labels, 2>::type
It's in the concept I presented:
I An MPL Integral Constant type
Here:
http://boost.org/libs/mpl/doc/refmanual/integral-constant.html
Anything special I am missing?
What I meant was where they come from and thus how they should be interpreted. If you have mpl::vector_c<int, 4,2, 7> do you get mpl::int_<0>, mpl::int_<1>, and mpl::int_<2> or mpl::int_<4>, mpl::int_<2>, and mpl::int_<7>?
The latter. Regards, -- Joel de Guzman http://www.boost-consulting.com http://spirit.sf.net
participants (2)
-
Joel de Guzman
-
Steven Watanabe