diff --git a/include/etl/utility.h b/include/etl/utility.h index 00ba8ca8..81c8c562 100644 --- a/include/etl/utility.h +++ b/include/etl/utility.h @@ -138,9 +138,9 @@ namespace etl // Gets the underlying type of an enum. //*********************************** template - ETL_CONSTEXPR underlying_type_t to_underlying(T value) ETL_NOEXCEPT + ETL_CONSTEXPR typename underlying_type::type to_underlying(T value) ETL_NOEXCEPT { - return static_cast>(value); + return static_cast::type>(value); } // We can't have std::swap and etl::swap templates coexisting in the unit tests