This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/43122] g++ does not allow overloading operators for sse types (__m128, __m128d)
- From: "nenakhov.sergey at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 05 Sep 2012 12:24:49 +0000
- Subject: [Bug c++/43122] g++ does not allow overloading operators for sse types (__m128, __m128d)
- Auto-submitted: auto-generated
- References: <bug-43122-4@http.gcc.gnu.org/bugzilla/>
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.