我的代码与第 3 方库发生冲突。我定义这个:
inline __m128 operator + (__m128 a, __m128 b)
{
return _mm_add_ps(a, b);
}
但得到
error C2084: function '__m128 operator +(const __m128,const __m128)' already has a body
我无法更改第 3 方库,并且他们不会 #define 任何标识此运算符已被定义的内容。有没有人知道的方法(可能使用 SFINAE)让他们的定义占上风?