-
Notifications
You must be signed in to change notification settings - Fork 1.6k
<bitset>: Make bitset::all work like bitset::any #671
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
Conversation
Yes, it's better.
|
The test are failed due to warning: I can suppress them locally, but maybe need to embed suppression to _CONSTEXPR_IF? |
StephanTLavavej
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just minor nitpicks. Thanks!
That's an interesting idea - I hadn't considered embedding a |
We've been using the constexpr bool _Meow = /* some constant expression */;
if _CONSTEXPR_IF (_Meow) {trick to avoid C4127 in newer code rather than suppressing it. The only suppressions are in "old" things that probably aren't using |
|
I assume that I recall Anyway, I'll follow what @CaseyCarter suggests. |
Co-Authored-By: Stephan T. Lavavej <stl@nuwen.net>
StephanTLavavej
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks!
|
Thanks for the improvement! |
<bitset>: Make bitset::all work like bitset::any (microsoft#671)
Description
Fix #669
Checklist
Be sure you've read README.md and understand the scope of this repo.
If you're unsure about a box, leave it unchecked. A maintainer will help you.
_Uglyas perhttps://eel.is/c++draft/lex.name#3.1 or there are no product code changes.
verified by an STL maintainer before automated testing is enabled on GitHub,
leave this unchecked for initial submission).
members, adding virtual functions, changing whether a type is an aggregate
or trivially copyable, etc.).
the C++ Working Draft (including any cited standards), other WG21 papers
(excluding reference implementations outside of proposed standard wording),
and LWG issues as reference material. If they were derived from a project
that's already listed in NOTICE.txt, that's fine, but please mention it.
If they were derived from any other project (including Boost and libc++,
which are not yet listed in NOTICE.txt), you must mention it here,
so we can determine whether the license is compatible and what else needs
to be done.