diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-06-26 22:53:01 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-06-26 23:05:21 +0200 |
commit | 3dc30f8e91ec3fd81c8e68a845632cd5e6a5a77b (patch) | |
tree | 291c8a89ec3b75d1df3ac02ed0289aa6a752a7a4 /options/slider.hpp | |
parent | ee0dd3b6d5ad2b6083372f4e4f0cb57a45aaaff2 (diff) |
options/slider: add missing `operator!='
Diffstat (limited to 'options/slider.hpp')
-rw-r--r-- | options/slider.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/options/slider.hpp b/options/slider.hpp index ab635d56..6c9c5a23 100644 --- a/options/slider.hpp +++ b/options/slider.hpp @@ -10,6 +10,8 @@ #include "export.hpp" #include "compat/macros.hpp" +#include <type_traits> + #include <QDataStream> #include <QMetaType> #include <QDebug> @@ -33,15 +35,15 @@ namespace options template<typename t> cc_noinline - explicit operator arith_conversion_t<t>() const + operator arith_conversion_t<t>() const { return t(cur_); } slider_value(const slider_value& v); slider_value(); - slider_value& operator=(const slider_value& v); bool operator==(const slider_value& v) const; + bool operator!=(const slider_value& v) const; operator double() const { return cur_; } double cur() const { return cur_; } double min() const { return min_; } |