We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
增改一点示例代码,以拓宽示例的适配范围。
if (std::is_same<decltype(NULL), decltype(0)>::value) std::cout << "NULL == 0" << std::endl;
因为在Ubuntu 18.04环境下的clang++是long类型。我这里提供一个简单的思路,不过实现肯定不够优雅简洁。
long
if (std::is_same<decltype(NULL), decltype(0)>::value || std::is_same<decltype(NULL), decltype(0L)>::value) std::cout << "NULL == 0" << std::endl;
The text was updated successfully, but these errors were encountered:
PR welcome
Sorry, something went wrong.
book: remove nullptr 0L condition
0f8819f
This is a bug introduced in #132. Fixes #136
Successfully merging a pull request may close this issue.
动机
增改一点示例代码,以拓宽示例的适配范围。
需求说明
因为在Ubuntu 18.04环境下的clang++是
long
类型。我这里提供一个简单的思路,不过实现肯定不够优雅简洁。The text was updated successfully, but these errors were encountered: