Travis,

According to our plans for type traits, is this how you would define an
internal class template that combines the add_const<T> and
add_reference<T> type modifiers?

        #include <rw/_type_traits.h>

        _RWSTD_NAMESPACE (__rw) {

        template <class _TypeT>
        class __rw_add_const_ref
        {
            typedef _TYPENAME __rw_add_const<_TypeT>::type      _ConstT;

        public:

            typedef _TYPENAME __rw_add_reference<_ConstT>::type type;
        };

        }   // namespace __rw

Also, it'd be nice if you jot down some of these plans for type traits
on the C++0x Wiki <http://wiki.apache.org/stdcxx/Cpp0x>; e.g., header
names, internal utilities, TODO work, etc.  ;)

Thanks,
Brad.

Reply via email to