warning C4090: ‘function’: different ‘const’ qualifiers

代码如下:

错误如下:

有人已经贴了解决方案了,https://stackoverflow.com/questions/2819535/unable-to-free-const-pointers-in-c

就是free的参数不能是const类型的,可以来个类型转换:

 

This entry was posted in tittle tattle. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *