On 25 February 2014 18:39, Matt Calabrese <rivorus@gmail.com> wrote:

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. :(

I found the header file here, I suppose that's all that's needed.
http://dancinghacker.com/switch/switch.hpp

MM