开发者

Do I still write String^ const in C++/CLI

In C++ it's recommended to have const-correctness everywhere. But s开发者_JAVA技巧ince in .Net world, the string content cannot be changed, (new string will be created), do I still write String^ const?


No. Just pass a handle to a string directly: method(String^ string)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜