2006-09-18 Benjamin Kosnik * include/ext/typelist.h (cond_type): Remove, use __conditional_type. Index: include/ext/typelist.h =================================================================== --- include/ext/typelist.h (revision 117024) +++ include/ext/typelist.h (working copy) @@ -44,8 +44,10 @@ */ #ifndef TYPELIST_HPP -#define TYPELIST_HPP +#define TYPELIST_HPP 1 +#include + _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) namespace typelist @@ -97,29 +99,12 @@ { 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 @@ operator()(Fn&) { } }; - // #include template struct append_; @@ -159,7 +143,6 @@ typedef Typelist_Chain type; }; - // #include template struct contains_; @@ -190,7 +173,6 @@ }; }; - // #include template class Pred> struct chain_filter_; @@ -210,10 +192,9 @@ 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 @@ typedef typename chain_at_index_::type type; }; - // #include template class Transform> struct chain_transform_; @@ -247,7 +227,6 @@ typedef chain type; }; - // #include template struct append_typelist_;