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

Compile error in use #56

Closed
yezilaoda opened this issue Sep 17, 2021 · 4 comments
Closed

Compile error in use #56

yezilaoda opened this issue Sep 17, 2021 · 4 comments

Comments

@yezilaoda
Copy link

Version: newest
OS: Win10
IDE:VS2019 newest

when i compile my project with this lib

concurrencpp\results\when_result.h(135,76): warning C4003: 类函数宏的调用“max”参数不足
concurrencpp\results\when_result.h(135,76): error C2589: “(”:“::”右边的非法标记

code is

auto completed_result_index = std::numeric_limits<size_t>::max();

@David-Haim
Copy link
Owner

Hi
I'm not familiar with Chinese, so I can only guess what's the problem.
My guess is that something is defining max before you include concurrenncpp.h. Windows.h is a regular suspect.

What happens if you add #undef max right before you include concurrencpp's headers in your code?

@David-Haim
Copy link
Owner

Any new?

@yezilaoda
Copy link
Author

thanks

@yezilaoda
Copy link
Author

It was solved

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