summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0ba814b)
This should help preventing misuse.
No functional change.
/// operator<<() inits options and assigns idx in the correct printing order
/// operator<<() inits options and assigns idx in the correct printing order
-Option& Option::operator<<(const Option& o) {
+void Option::operator<<(const Option& o) {
static size_t index = 0;
*this = o;
idx = index++;
static size_t index = 0;
*this = o;
idx = index++;
Option(int v, int min, int max, OnChange = NULL);
Option& operator=(const std::string& v);
Option(int v, int min, int max, OnChange = NULL);
Option& operator=(const std::string& v);
- Option& operator<<(const Option& o);
+ void operator<<(const Option& o);
operator int() const;
operator std::string() const;
operator int() const;
operator std::string() const;