diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 465b785861d..3c68d8d6836 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,7 @@ +2006-09-18 Benjamin Kosnik + + * include/ext/typelist.h (cond_type): Remove, use __conditional_type. + 2006-09-18 Benjamin Kosnik Peter Doerfler Paolo Carlini diff --git a/libstdc++-v3/include/ext/typelist.h b/libstdc++-v3/include/ext/typelist.h index 11913e3aa22..a32259e465e 100644 --- a/libstdc++-v3/include/ext/typelist.h +++ b/libstdc++-v3/include/ext/typelist.h @@ -44,7 +44,9 @@ */ #ifndef TYPELIST_HPP -#define TYPELIST_HPP +#define TYPELIST_HPP 1 + +#include _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) @@ -97,29 +99,12 @@ namespace typelist { namespace detail { - // #include template struct type_to_type { typedef Type type; }; - template - struct cond_type; - - template - struct cond_type - { - typedef A type; - }; - - template - struct cond_type - { - typedef B type; - }; - - // #include template struct apply_; @@ -142,7 +127,6 @@ namespace detail operator()(Fn&) { } }; - // #include template struct append_; @@ -159,7 +143,6 @@ namespace detail typedef Typelist_Chain type; }; - // #include template struct contains_; @@ -190,7 +173,6 @@ namespace detail }; }; - // #include template class Pred> struct chain_filter_; @@ -210,10 +192,9 @@ namespace detail typedef typename chain_filter_::type rest_type; typedef chain chain_type; - typedef typename cond_type::type type; + typedef typename __conditional_type::__type type; }; - // #include template struct chain_at_index_; @@ -229,7 +210,6 @@ namespace detail typedef typename chain_at_index_::type type; }; - // #include template class Transform> struct chain_transform_; @@ -247,7 +227,6 @@ namespace detail typedef chain type; }; - // #include template struct append_typelist_;