Skip to content
Snippets Groups Projects
Commit a17daf7f authored by Mark Olesen's avatar Mark Olesen
Browse files

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
parent af12964b
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment