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

C2589 "(":"::"右边的非法标记 #25

Closed
liuaifu opened this issue Jan 5, 2024 · 3 comments
Closed

C2589 "(":"::"右边的非法标记 #25

liuaifu opened this issue Jan 5, 2024 · 3 comments

Comments

@liuaifu
Copy link

liuaifu commented Jan 5, 2024

crc.hpp:585

// Clear overflowed bits
remainder &= std::numeric_limits<Register>::max() >> (std::numeric_limits<Register>::digits - register_length);

同一份代码在1.83下是好的,在1.84上就编译不过,环境:
Windows10 VS2022 17.7.6 C++20

@shixiawuheng
Copy link

同问,你解决了吗

@shixiawuheng
Copy link

@shixiawuheng
Copy link

我选择的是
#undef max
#undef min

pdimov added a commit that referenced this issue Apr 14, 2024
@pdimov pdimov closed this as completed in 7a02e88 Apr 14, 2024
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