Boost logo

Boost :

From: рустам абдумаликов (vigosslive2_at_[hidden])
Date: 2019-11-08 22:05:12


Hi All,

First attempt kind of failed due to alignment:(
So this is another one)

So I wrote a library eswitch which provides enhanced functionality for C++
switch.
Please take a look and leave your comments.

Motivation:
To overcome native switch limitations:
1) one parameter per switch
2) the parameter restricted to only integral types( int, char, enum ... )

Whereas "eswitch" supports any number of parameters and almost without
restriction on their type, as long as the type is comparable( i.e. has
operator== ).

Why it is important?
Because people want to overcome current switch limitation either by
implementing their own solution, non-standard extension or even trying to
standardize it.
Making proposed eswitch functionality part of the Boost-Library will
provide millions of developers useful, universal and agile functionality in
order to finally fulfill their needs.

Full proposal here:
https://github.com/rabdumalikov/proposals/blob/master/eswitch_boost_proposal.pdf

Repository: https://github.com/rabdumalikov/eswitch_v4

Best Regards
Rustam Abdumalikov


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk