aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorBrendan Kehoe <brendan@gcc.gnu.org>2001-10-20 11:42:39 -0400
committerBrendan Kehoe <brendan@gcc.gnu.org>2001-10-20 11:42:39 -0400
commit149956644195b2c388bdd748b4c14c571e6054fa (patch)
tree3e52ea06a8a1652011f30622e2b21ead0a7def8e /libstdc++-v3
parentacb0aa657c9c2428385f53f981ad6f4ffc81ad84 (diff)
downloadgcc-149956644195b2c388bdd748b4c14c571e6054fa.zip
gcc-149956644195b2c388bdd748b4c14c571e6054fa.tar.gz
gcc-149956644195b2c388bdd748b4c14c571e6054fa.tar.bz2
type_traits.h (_Bool): Removed this type.
* bits/type_traits.h (_Bool): Removed this type. (__true_type, __false_type): Change to be plain structs. * src/string-inst.cc (__destroy_aux): Change third parm to be __false_type instead of _Bool<false>. * src/misc-inst.cc (__uninitialized_fill_n_aux, __uninitialized_copy_aux): Likewise. From-SVN: r46383
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/include/bits/type_traits.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/libstdc++-v3/include/bits/type_traits.h b/libstdc++-v3/include/bits/type_traits.h
index 2fd78ba..ff5f5a1 100644
--- a/libstdc++-v3/include/bits/type_traits.h
+++ b/libstdc++-v3/include/bits/type_traits.h
@@ -82,10 +82,8 @@ template <class _Tp> inline void copy(_Tp* __source,_Tp* __destination,int __n)
}
*/
-
-template <bool _Truth> struct _Bool {};
-typedef _Bool<true> __true_type;
-typedef _Bool<false> __false_type;
+struct __true_type {};
+struct __false_type {};
template <class _Tp>
struct __type_traits {