global operator + override clash detection
My code is is clashing with a 3rd party library. I define this:
inline __m128 operator + (__m128 a, __m128 b)
{
return _mm_add_ps(a, b);
}
but get
error C2084: function '__m128 operator +(const __m128,const __m128)'
already has a body
I can't change the 3rd party library and they don't #define anything which
identifies this operator as having been defined. Is there a way (perhaps
using SFINAE) that anyone knows of to allow their definition to prevail?
No comments:
Post a Comment