Skip to content
New issue

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

Future.h内有个小问题 #5

Open
pbwang002 opened this issue Aug 19, 2019 · 3 comments
Open

Future.h内有个小问题 #5

pbwang002 opened this issue Aug 19, 2019 · 3 comments

Comments

@pbwang002
Copy link

static_assert(std::is_same<T, void>::value ||
std::is_copy_constructible() ||
std::is_move_constructible(),
"must be copyable or movable or void");
修改为
static_assert(std::is_same<T, void>::value ||
std::is_copy_constructible::value ||
std::is_move_constructible::value,
"must be copyable or movable or void");

@loveyacper
Copy link
Owner

感谢指出。
我编译器较老,4.8.5,这两种写法都支持。你的版本是?

@pbwang002
Copy link
Author

vs2015、vs2019处理的

@loveyacper
Copy link
Owner

vs2015、vs2019处理的

没有尝试过windows,ananas只能在linux和macos运行,但是理论上future可以抠出来在任意平台运行。另外这两种写法编译器应该都予支持,我这种是TCPL4上的写法。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants