64,636
社区成员
发帖
与我相关
我的任务
分享
/*template<>*/ inline bool IsNull(const Date& d) { return d.year == -32768; }
template<class T> bool IsNull(const T &x) { return x.IsNullInstance(); }
的“显式专用化”按格式应当这样写:
template<> bool IsNull<Date>(const Date &d) { return d.year == -32768; }
但建议的做法是直接“重载”:
inline bool IsNull(const Date &d) { return d.year == -32768; }