[Bug c++/43122] g++ does not allow overloading operators for sse types (__m128, __m128d)

nenakhov.sergey at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Sep 5 12:25:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43122

--- Comment #10 from SergeyN <nenakhov.sergey at gmail dot com> 2012-09-05 12:24:49 UTC ---
(In reply to comment #9)
> Then put it into a class and add overloaded comparison operators for the
> wrapper class.  That is the same thing as with float/double, you can't overload
> float/double comparison operator either.


Well, I'll of course find a way to workaround this issue by either using a
class, or using a separate function like cmp_less or something like that. 
The point of this thread is that operator overloading for vector types doesn't
not work in gcc, and not how to work around that (which I'm sure people have no
problem doing given that the problem was reported 2 years ago).

Sergey.



More information about the Gcc-bugs mailing list