but I wonder if this counts as bad design.
I would not go as far as calling it bad design.
You can add the following, which should apease both compilers:
Qt Code:
  1. deefalut: assert(false);
  2. return 0.0; //or -1.0 or what have you that means error
To copy to clipboard, switch view to plain text mode