diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-10-07 00:55:59 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-10-07 00:55:59 +0200 |
commit | 9a881ac796dd46b4bdde7f48d8003160c2242c2d (patch) | |
tree | 82f37aee29046c2adce979a1ee1268c470f7276e /options | |
parent | 329a0e5a8d1d275fa7fa5533c8327139fc37e1ab (diff) |
fix GCC build errors
Issue: #726
Diffstat (limited to 'options')
-rw-r--r-- | options/value-traits.hpp | 1 | ||||
-rw-r--r-- | options/value.hpp | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/options/value-traits.hpp b/options/value-traits.hpp index 3ab623da..31b6b534 100644 --- a/options/value-traits.hpp +++ b/options/value-traits.hpp @@ -5,6 +5,7 @@ #include <QString> +#include <cmath> #include <cinttypes> #include <type_traits> diff --git a/options/value.hpp b/options/value.hpp index 887f0d39..1bf6820d 100644 --- a/options/value.hpp +++ b/options/value.hpp @@ -112,8 +112,8 @@ public: operator t() const { return get(); } - template<typename u, typename = decltype(static_cast<u>(std::declval<t>()))> - explicit cc_forceinline operator u() const { return to<u>(); } + template<typename w, typename = decltype(static_cast<w>(std::declval<t>()))> + explicit cc_forceinline operator w() const { return to<w>(); } auto operator->() const { |