Boost logo

Boost :

From: Darin Adler (darin_at_[hidden])
Date: 2000-01-03 12:43:09


> int* pi = null;
> A *pa = null;

I'd like to see these work as well:

        void (* pf)() = null;
        void (A::* pmf)() = null;

> #if !defined(BOOST_KOENIG_LOOKUP_BROKEN)
> class null_type : noncopyable {
> public:
> template<typename T> operator T*() const { return 0; }
> };
> static const null_type null;

The CodeWarrior compiler doesn't yet support member templates for the
conversion operator, even though it supports other member templates and
Koenig lookup works fine.

    -- Darin


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