Skip to content
  • Mark Olesen's avatar
    ENH: improve robustness and usability of Switch · a17daf7f
    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