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
identity
请看代码, 此处实例化是否应当为:
template <class T> struct identity : public unarg_function<T, T> { const T &operator()(const T &x) const { return x; } };
即将父类模板的第二个模板参数实例化为T而非bool。
T
bool
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
我觉得它应该改成这样:
struct identity { template <class T> constexpr T &&operator()(T &&x) const noexcept { return (T&&)x; } };
Successfully merging a pull request may close this issue.
请看代码, 此处实例化是否应当为:
即将父类模板的第二个模板参数实例化为
T
而非bool
。The text was updated successfully, but these errors were encountered: