[過去ログ]
Boostを語れゴラァ part3 (1001レス)
上
下
前
次
1-
新
このスレッドは過去ログ倉庫に格納されています。
次スレ検索
歴削→次スレ
栞削→次スレ
過去ログメニュー
450
(1)
: 2006/12/16(土)02:36
AA×
[
240
|
320
|480|
600
|
100%
|
JPG
|
べ
|
レス栞
|
レス消
]
450: [sage] 2006/12/16(土) 02:36:43 これか? template < typename T > struct Foo { template < typename P > static void Bar() ; } ; Foo<int>::Bar<int>() ; あるいはこれか? template < typename T, template<typename, typename> class Container > class Foo { Container< T, std::allocator<T> > cont ; } ; Foo< int, std::vector > FooVec ; どちらもできる……が、後者は、なぜかテンプレートテンプレートパラメータのデフォルト引数が使えない。 //エラー template< template <typename, typename = std::allocator<int> > class Container > class Foo { Container<int> cont ; } ; http://echo.5ch.net/test/read.cgi/tech/1158991211/450
これか? あるいはこれか? どちらもできるが後者はなぜかテンプレートテンプレートパラメータのデフォルト引数が使えない エラー
上
下
前
次
1-
新
書
関
写
板
覧
索
設
栞
歴
あと 551 レスあります
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
ぬこの手
ぬこTOP
0.019s