爲什麼這個模板不能編譯?C++類模板的問題
template <class K, class V = Referenced>
class Cache
{
public:
Cache();
...
};
template <class K, class V>
Cache::Cache() <==== location of compiler error (see below)
{
...
}
錯誤error: 'template<class K, class V> class Cache' used without template parameters