Skip to content

Commit

Permalink
simdize: use make_tuple instead of tie
Browse files Browse the repository at this point in the history
The tuple_size initializer doesn't have a this pointer, so EDG seems to
be right about complaining that std::tie can't work here.
std::make_tuple OTOH still works, so let's go with that instead. All we
need to know is the number of elements, anyway.

Refs: gh-119
Signed-off-by: Matthias Kretz <kretz@kde.org>
  • Loading branch information
mattkretz committed Oct 10, 2016
1 parent ee46cdc commit abffdfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/simdize.h
Expand Up @@ -1772,7 +1772,7 @@ using simdize = SimdizeDetail::simdize<T, N, MT>;
return std::get<N_>(std::tie MEMBERS_); \
} \
enum : std::size_t { \
tuple_size = std::tuple_size<decltype(std::tie MEMBERS_)>::value \
tuple_size = std::tuple_size<decltype(std::make_tuple MEMBERS_)>::value \
}

} // namespace Vc
Expand Down

0 comments on commit abffdfb

Please sign in to comment.