diff --git a/octa/traits.h b/octa/traits.h index 3dd4cb6..201706d 100644 --- a/octa/traits.h +++ b/octa/traits.h @@ -171,7 +171,7 @@ namespace octa { template static inline constexpr typename RemoveReference::type && move(T &&v) noexcept { - return (typename RemoveReference::type &&)v; + return static_cast::type &&>(v); } /* forward */ @@ -179,13 +179,13 @@ namespace octa { template static inline constexpr T && forward(typename RemoveReference::type &v) noexcept { - return (T &&)v; + return static_cast(v); } template static inline constexpr T && forward(typename RemoveReference::type &&v) noexcept { - return (T &&)v; + return static_cast(v); } }