|
Boost : |
From: Aleksey Gurtovoy (alexy_at_[hidden])
Date: 2000-12-22 07:34:58
Another thought about 'ob_type_traits.hpp' header, since we are on the
subject :). Right now it does not properly implement 'add_reference' (and
non-existing 'add_pointer' ;)
// current version
template <typename T> struct add_reference{ typedef T& type; };
...although it certainly could:
template <typename T>
struct add_reference {
typedef typename ct_if<is_reference<T>::value, T&, T>::type type;
};
template <typename T>
struct add_pointer {
typedef typename ct_if<is_pointer<T>::value, T*, T>::type type;
};
--Aleksey
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk