It's from Wikipedia, if our compiler don't support c++11 , we can implement one by ourselves , just like below:
const class nullptr_t
{
public:
template<class T>
inline operator T*() const
{ return 0; }
template<class C, class T>
inline operator T C::*() const
{ return 0; }
private:
void operator&() const;
} nullptr = {};
I can't understand the above codes.
----------------------update------------------
Sorry , i didn't express it clear.
template<class T>
inline operator T*() const
{ return 0; }
template<class C, class T>
inline operator T C::*() const
{ return 0; }
The above codes,i don't understand the grammar. I never see this kind of template form before.(like "operator T C::*()")