Skip to content

Commit

Permalink
MSVC: more simd_cast workarounds
Browse files Browse the repository at this point in the history
Refs: gh-119
Signed-off-by: Matthias Kretz <kretz@kde.org>
  • Loading branch information
mattkretz committed Oct 6, 2016
1 parent 9cb6730 commit 43864a7
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 91 deletions.
4 changes: 2 additions & 2 deletions common/simd_cast.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ namespace Vc_VERSIONED_NAMESPACE
* underlying arithmetic types.
*/
template <typename To, typename From>
Vc_INTRINSIC Vc_CONST enable_if<std::is_same<To, Traits::decay<From>>::value, To>
simd_cast(From &&x)
Vc_INTRINSIC Vc_CONST To
simd_cast(From &&x, enable_if<std::is_same<To, Traits::decay<From>>::value> = nullarg)
{
return std::forward<From>(x);
}
Expand Down
Loading

0 comments on commit 43864a7

Please sign in to comment.