This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]