在Dev-c++中,函数模板不支持偏特化?
xlsue 2005-10-30 11:43:17 A natural syntax for partially specializing function templates is the generalization of the class template notation:
template <typename T>
T const& max (T const&, T const&); // primary template
template <typename T>
T* const& max <T*>(T* const&, T* const&); // partial specialization
-------------------------------------------------------------------------------------------------------------------
这在Dev-c++中提示:
8 G:\Dev-Cpp\函数template特化与重载\main.cpp partial specialization `max<T*>' of function template