From 27cc0e0e43ddba51bba6f9a43c0bb823f00f1ff5 Mon Sep 17 00:00:00 2001 From: Jonas Rembser Date: Fri, 9 Jan 2026 16:43:18 +0100 Subject: [PATCH] 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`. --- root/math/genvector/RandomNumberEngine.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/root/math/genvector/RandomNumberEngine.h b/root/math/genvector/RandomNumberEngine.h index d2d01ad3..27ddd82f 100644 --- a/root/math/genvector/RandomNumberEngine.h +++ b/root/math/genvector/RandomNumberEngine.h @@ -46,9 +46,9 @@ inline void SetSeed(int N) template class TypeSize { template - static constexpr size_t Get(decltype(&C::Size)) + static constexpr size_t Get(decltype(&C::size)) { - return C::Size; + return C::size(); } template static constexpr size_t Get(typename std::enable_if::value>::type * = 0)