Skip to content
Snippets Groups Projects
user avatar
Mark Olesen authored
- 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
a17daf7f
History