アカウント名:
パスワード:
#include <string>#include <memory>#include "cls.h" int main(){ std::auto_ptr<Foo<int> > a(new Foo<int>(0)); a->hello(); std::auto_ptr<Foo<std::string> > b(new Bar<std::string>("str")); b->hello(); std::auto_ptr<Foo<char> > c(new Baz<char>('c')); c->hello(); return 0;
より多くのコメントがこの議論にあるかもしれませんが、JavaScriptが有効ではない環境を使用している場合、クラシックなコメントシステム(D1)に設定を変更する必要があります。
あと、僕は馬鹿なことをするのは嫌いですよ (わざとやるとき以外は)。-- Larry Wall
クラステンプレートの継承? (スコア:0)
外しているかもしれないので AC 。
-- main.cc begin --
Re:クラステンプレートの継承? (スコア:1)