[Interest] Qt 5.5.0 Compile Time Hash Example
Thiago Macieira
thiago.macieira at intel.com
Mon Aug 24 17:32:13 CEST 2015
On Monday 24 August 2015 06:16:55 md at 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
More information about the Interest
mailing list