开发者

force compiler to generate whole class template

开发者 https://www.devze.com 2023-03-24 07:16 出处:网络
how can I force compiler, to generate whole class template? not just methods I use? I am sure I read it in template complete guide book, but I can not find it. It was one-line statement.

how can I force compiler, to generate whole class template? not just methods I use? I am sure I read it in template complete guide book, but I can not find it. It was one-line statement.

I am not able to ask google th开发者_Python百科e right question.

Thank you!


You can explicitly instantiate a class template with something like this:

template class Foo<Argument1,Argument2>;
0

精彩评论

暂无评论...
验证码 换一张
取 消