阅读背景:

使用C库时,C ++中的const正确性

来源:互联网 

Currently I am working on an application in C++ which I want to be const correct. Meaning using const on parameters wherever possible, and stuff like that. However, this C++ application makes use of a C library which does not use const often. The problem I'm running into is when sending parameters to functions in the C library the parameters cannot be const so I am forced to do a cast.Currently I am working on an application in C++




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

分享到: