This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch to remove _Bool from type_traits.h
- To: libstdc++ at gcc dot gnu dot org
- Subject: Patch to remove _Bool from type_traits.h
- From: Stephen M. Webb <stephen at bregmasoft dot com>
- Date: Tue, 16 Oct 2001 16:41:30 -0400
- Cc: gcc-patches at gcc dot gnu dot org
- Organization: CRYPTOCard Corporation
- Reply-To: stephen at bregmasoft dot com
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