可以说我有
struct foo { void ham() {} void ham() const {} }; struct bar { void ham() {} };
假设我有一个模板化函数,我可以判断给定类型是否具有const重载ham?
ham
c++ templates c++11
c++ ×1
c++11 ×1
templates ×1