That is exactly what the doctor ordered. I spent a lot of time searching via google and the best that I came up with was what I shared for discussion.
Thanks for the ISOCPP.org reference, I am sure more of us will be looking at it as well. Have a great day, md On 8/24/2015 9:32 AM, Thiago Macieira wrote: > On Monday 24 August 2015 06:16:55 m...@rpzdesign.com wrote: >> Would you be interested in sharing your solution >> to the switch(STRING) problem? > > It's been posted several times to the C++ discussion lists: > > string_switch(string, > do_case(value1, [] { do1(); }), > do_case(value2, [=] { do2(string); }), > do_case(value3, [&] { string.clear(); } > ); > > This gets posted every time someone proposes switching on non-primitive types. > Just search std-discussion and std-proposals (isocpp.org). > -- No spell checkers were harmed during the creation of this message. _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest