summaryrefslogtreecommitdiffhomepage
path: root/options
diff options
context:
space:
mode:
Diffstat (limited to 'options')
-rw-r--r--options/value-traits.hpp1
-rw-r--r--options/value.hpp4
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
{