From 18707fc2aa68621962ddc60b0d360f1870e839d9 Mon Sep 17 00:00:00 2001 From: Daniel Towner Date: Fri, 2 Oct 2026 01:22:37 -0700 Subject: [PATCH] Fixed namespace issue for simd-iterator test The stream output operator<< needed by boost test was in the global namespace where its presence was ambiguious, which resulted in changes of behaviour across different compilers. The operator has now been moved into xvec::simd where it can be found reliably. This only affects testing, not the main library itself. --- test/TestSimdIterator.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/TestSimdIterator.cpp b/test/TestSimdIterator.cpp index e894772..ff6063c 100644 --- a/test/TestSimdIterator.cpp +++ b/test/TestSimdIterator.cpp @@ -10,11 +10,13 @@ #include // make iterators printable for the test results. +namespace xvec::simd { template std::ostream& operator<<(std::ostream& stream, const xvec::simd::simd_iterator<_Simd>& iter) { stream << "simd_iterator<" << (void*)iter.data << ", " << iter.index << ">"; return stream; } +} // Namespace xvec::simd #include "SimdTestUtilities.hpp" #include "TypesToTest.hpp"