[Bug libstdc++/35480] Relational operators for <tr1/tuple> don't error on different sized tuples

pcarlini at suse dot de gcc-bugzilla@gcc.gnu.org
Thu Mar 6 16:28:00 GMT 2008



------- Comment #2 from pcarlini at suse dot de  2008-03-06 16:27 -------
Frankly, I'm not 100% sure we want an error here: I mean, we have a "Requires"
violation in the case at issue, which, in general, in my reading of the
standard, certainly doesn't mean the code must not compile, means something
like "user, anything can happen, you are on your own". Certainly it would be
easy to add in the TR1 version, an __enable_if, but I would be more willing to
do that change to the TR1 version in case eventually the C++0x version will get
a concept enforcing equality of the sizes. Doug, is that in the plan?


-- 

pcarlini at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |doug dot gregor at gmail dot
                   |                            |com, pcarlini at suse dot de
          Component|c++                         |libstdc++


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



More information about the Gcc-bugs mailing list