13 lines
247 B
C++
13 lines
247 B
C++
#pragma once
|
|
|
|
#include <type_traits>
|
|
|
|
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);
|
|
}
|
|
|
|
} // namespace mbgl
|