Steven Watanabe proposed Boost.Switch years ago and I believe it was accepted but never added. It would work fine here to do what you want and has more general use than just fusion (and gives more information than a variant result would). I bring this up every time a question like this comes up but it would be nice for his library to be revived and added. :(

On Feb 24, 2014 2:55 AM, "MM" <finjulhich@gmail.com> wrote:
Hello,

I just wanted to confirm there's no provided method to get the n'th element of say a fusion vector where n is known at runtime, except of handling it explicitkly with a switch case?

Thanks

MM

_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users