diff --git a/dlib/simd/simd4f.h b/dlib/simd/simd4f.h index 48805ad95..6262e0d97 100644 --- a/dlib/simd/simd4f.h +++ b/dlib/simd/simd4f.h @@ -23,6 +23,12 @@ namespace dlib simd4f(const __m128& val):x(val) {} simd4f(const simd4i& val):x(_mm_cvtepi32_ps(val)) {} + inline simd4f& operator=(const simd4i& val) + { + x = simd4f(val); + return *this; + } + simd4f& operator=(const __m128& val) { x = val;