0
#pragma once
//includes
template<class RefType>
class Foo
{
public:
template<>
enum Foo<QString>::bar { //values A }; //LINE X
template<>
enum Foo<double>::bar { //values B };
template<>
enum Foo<Kraken::Point3>::bar { //values C };
//functions
}; //LINE Y
コンパイラがあれば、私はこのエラーの原因を理解していないトラブル: 'クラス' タイプのredifinitionは
note: see declaration of 'Foo<QString>' LINE X
note: note: see reference to class template instantiation 'Foo<RefType>'LINE Y
リアクションLINE X
error C2011: 'Foo<QString>': 'class' type redefinition
のエラーを与えます私は問題にもっと啓発されるようになります。質問を明確にするように再フォーマットします
あなたのコードで 'foo'と' bar'とは何ですか? – xinaiz
クラス名(Foo)と列挙名(bar)のスタンド – brettmichaelgreen
タイトルの「エピソード44」は何を意味していますか? – tambre