Skip to content

Commit fb1fc3a

Browse files
committed
Adapt GenVector tests to use size instead of Size of SIMD type
This makes the code compatible with `std::experimental::simd`. It's also entirely backwards compatible, because the old Vc type provided both `Size` and `size`.
1 parent 09c04a2 commit fb1fc3a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

root/math/genvector/RandomNumberEngine.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ inline void SetSeed(int N)
4646
template <typename T>
4747
class TypeSize {
4848
template <typename C>
49-
static constexpr size_t Get(decltype(&C::Size))
49+
static constexpr size_t Get(decltype(&C::size))
5050
{
51-
return C::Size;
51+
return C::size();
5252
}
5353
template <typename C>
5454
static constexpr size_t Get(typename std::enable_if<std::is_arithmetic<C>::value>::type * = 0)

0 commit comments

Comments
 (0)