summaryrefslogtreecommitdiff
path: root/include/mbgl/util/traits.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/util/traits.hpp')
-rw-r--r--include/mbgl/util/traits.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mbgl/util/traits.hpp b/include/mbgl/util/traits.hpp
index 7c9499897e..9d6f947cd2 100644
--- a/include/mbgl/util/traits.hpp
+++ b/include/mbgl/util/traits.hpp
@@ -5,8 +5,8 @@
namespace mbgl {
template<typename T>
-constexpr auto underlying_type(T t) -> typename std::underlying_type<T>::type {
- return static_cast<typename std::underlying_type<T>::type>(t);
+constexpr auto underlying_type(T t) -> typename std::underlying_type_t<T> {
+ return typename std::underlying_type_t<T>(t);
}
} // namespace mbgl