次の方法で共有


コンパイラ エラー C3211

'explicit specialization' : 明示的特殊化は、部分的特殊化の構文を使用しています。代わりに、テンプレート <> を使用してください

明示的特殊化の形式が正しくありません。

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

// C3211.cpp
// compile with: /LD
template<class T>
struct s;

template<class T>
// use the following line instead
// template<>
struct s<int>{};   // C3211