阅读背景:

如何使用库中的C ++ 11中的'extern'将定义与类模板的声明分开(dll,so,..)

来源:互联网 

I am a developer of an Open Source library. One of our classes is templated for a bunch of different types. Currently the definition resides in the header file, which has a negative effect on compilation times and also forces users to include more headers than needed. My goal is the following:I am a developer of an Open Source library. One




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: