level 11
whatofor
楼主
const class
{
public:
template<typename T>
operator T*()const
{
return 0;
} template<typename T,class C>
operator T C::*()const
{
return 0;
}
private:
void operator&()const;
}nullptr;
错误:template.cpp|24|error: uninitialized const 'nullptr'|
||=== Build finished: 1 errors, 0 warnings ===|
这是符合标准的用法吗? 我想知道是编译器的问题还是用法的问题
2012年03月04日 02点03分
1
{
public:
template<typename T>
operator T*()const
{
return 0;
} template<typename T,class C>
operator T C::*()const
{
return 0;
}
private:
void operator&()const;
}nullptr;
错误:template.cpp|24|error: uninitialized const 'nullptr'|
||=== Build finished: 1 errors, 0 warnings ===|
这是符合标准的用法吗? 我想知道是编译器的问题还是用法的问题