Boost logo

Boost :

From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2005-03-20 08:10:24


I need some kind of traits for my indirect_fun class if it should be
usable with smart pointers.

I imagined some like

 template< class T >
    struct pointer_value
        typedef BOOST_DEDUCED_TYPENAME remove_pointer<T>::type type;

 template< class T, class D >
    struct pointer_value< shared_ptr<T,D> >
        typedef T type;


Any thoughts?



Thorsten Ottosen

Boost list run by bdawes at, gregod at, cpdaniel at, john at