21 Jan
                
                    2005
                
            
            
                21 Jan
                
                '05
                
            
            
            
        
    
                6:40 a.m.
            
        Just wondering if there was any interest in a better null, or if such a thing existed in boost already. The code is relatively simple: class null { public: explicit null ( void * ) { } ~ null ( ) { } template < typename T > operator T * ( ) { return 0; } }; null null ( 0 ); Example usage: int * p = null; // ok int i = null; // error: null cannot be converted to an int -Jason