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).
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to