This is the mail archive of the gcc-patches@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]

[patch] : Tiny change to _NullClass in <tr1/tuple>


This very tiny patch just removed the body of _NullClass, which is used as a placeholder in tr1::tuple

This type should never be seen by users, however, I found someone who was (accidentally) making objects of this type (by accessing the 3rd type of a tuple of length 2).

Bootstrapped on ppc-darwin.

Attachment: ChangeLog
Description: application/text

Index: tuple
===================================================================
--- tuple	(revision 107569)
+++ tuple	(working copy)
@@ -45,7 +45,7 @@
 {
  // An implementation specific class which is used in the tuple class
  // when the tuple is not maximum possible size.
- struct _NullClass { };
+ struct _NullClass;
 
  template<typename _Tp0 = _NullClass, typename _Tp1 = _NullClass,
           typename _Tp2 = _NullClass, typename _Tp3 = _NullClass,

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