Do not workaround function argument evaluation

Rewrite options initialization to do not trying to
hack upon the undefined evaluation order of function
arguments.

No functional change.
This commit is contained in:
Marco Costalba
2014-04-01 09:39:41 +02:00
parent 1efc19ade0
commit d2caba1f66
2 changed files with 48 additions and 35 deletions
+1
View File
@@ -47,6 +47,7 @@ public:
Option(int v, int min, int max, OnChange = NULL);
Option& operator=(const std::string& v);
Option& operator<<(const Option& o);
operator int() const;
operator std::string() const;