ENH: improve robustness and usability of Switch
- add operator=(const switchType) to avoid this type of problem: Switch sw; sw = Switch::asEnum("foo", true); if (sw) ... // evaluated incorrectly - add constructor Switch(const switchType) for convenience - add valid() method to avoid using the switchType directly
Please register or sign in to comment