次の方法で共有


コンパイラ エラー C3205

テンプレート パラメーター 'template' の引数リストがありません

template パラメーターがありません。

次の例では C3205 が生成されます。

// C3205.cpp
template<template<class> class T> struct A {
   typedef T unparameterized_type;   // C3205
   // try the following line instead
   // typedef T<int> unparameterized_type;
};

template <class T>
struct B {
   typedef int value_type;
};

int main() {
   A<B> x;
}