use static_cast

master
Daniel Kolesa 2015-04-14 23:25:29 +01:00
parent d26db78f0d
commit 6767157db9
1 changed files with 3 additions and 3 deletions

View File

@ -171,7 +171,7 @@ namespace octa {
template<typename T>
static inline constexpr typename RemoveReference<T>::type &&
move(T &&v) noexcept {
return (typename RemoveReference<T>::type &&)v;
return static_cast<typename RemoveReference<T>::type &&>(v);
}
/* forward */
@ -179,13 +179,13 @@ namespace octa {
template<typename T>
static inline constexpr T &&
forward(typename RemoveReference<T>::type &v) noexcept {
return (T &&)v;
return static_cast<T &&>(v);
}
template<typename T>
static inline constexpr T &&
forward(typename RemoveReference<T>::type &&v) noexcept {
return (T &&)v;
return static_cast<T &&>(v);
}
}