From: Kobi Cohen-Arazi (kobi.cohenarazi_at_[hidden])
Date: 2008-01-02 17:06:29


>
> Does boost have some sort of null_ptr class that allows you to do portable
> NULL comparisons?

Would that works for you:

struct nullptr_t
{
   template<class T> operator T* () const { return 0; }
}nullptr;

?