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]

Patch to remove _Bool from type_traits.h



This is a quick patch that removes the symbol _Bool from libstdc++
type_traits.h.  Causes no change in the testsuite results using today's CVS.

2001-10-16  Stephen M. Webb  <stephen@bregmasoft.com>

	* include/bits/type_traits.h: Removed definition and use of _Bool.


diff -c -3 -p -r1.7 type_traits.h
*** type_traits.h       2001/06/27 17:09:52     1.7
--- type_traits.h       2001/10/16 20:32:56
*************** template <class _Tp> inline void copy(_T
*** 83,91 ****
  */
 
 
! template <bool _Truth> struct _Bool {};
! typedef _Bool<true>  __true_type;
! typedef _Bool<false> __false_type;
 
  template <class _Tp>
  struct __type_traits {
--- 83,91 ----
  */
 
 
! // distinct types representing the presence or absence of traits
! struct __true_type { };
! struct __false_type { };
 
  template <class _Tp>
  struct __type_traits {               

__
Stephen M. Webb


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