开发者

force compiler to generate whole class template

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜