From 6767157db97996827cb0c59701254fbea5b17dde Mon Sep 17 00:00:00 2001 From: q66 Date: Tue, 14 Apr 2015 23:25:29 +0100 Subject: [PATCH] use static_cast --- octa/traits.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } }