We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C++版本只有一个头文件,而头文件里面有个静态变量IdGenerator *IdGenerator::instance,如果在多个模块下#include "IdGenerator.h",会出现重复定义吧。应该把IdGenerator *IdGenerator::instance = NULL放到到cpp文件里面才比较符合工程上应用吧。
The text was updated successfully, but these errors were encountered:
老哥怎么样这样定义影响功能吗
Sorry, something went wrong.
No branches or pull requests
C++版本只有一个头文件,而头文件里面有个静态变量IdGenerator *IdGenerator::instance,如果在多个模块下#include "IdGenerator.h",会出现重复定义吧。应该把IdGenerator *IdGenerator::instance = NULL放到到cpp文件里面才比较符合工程上应用吧。
The text was updated successfully, but these errors were encountered: