Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2004-01-22 12:39:21


Douglas Gregor <gregod_at_[hidden]> writes:

> where deref does something like:
>
> template<typename Pointer, typename Pointee = typename Pointer::element_type>
> struct do_deref
> {

I suggest

    template<
        typename Pointer
      , typename Pointee = typename pointee<Pointer>::type
>
    struct do_deref
    {

    };

Or even leaving out the Pointee parameter altogether.
See boost/pointee.hpp.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk