-
Notifications
You must be signed in to change notification settings - Fork 1.6k
<complex> fix pow overload #383
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
<complex> fix pow overload #383
Conversation
|
Shouldn't |
This is a special exception to the general rule of "all internal identifiers must be Edit: Actually looked at the context. This is slightly different than the type trait rule, as it's a local alias, but it is permissible for the same reason. (Often we would use an |
|
https://github.com/microsoft/STL/search?p=1&q=%22using+type%22&unscoped_q=%22using+type%22 I noticed that the code doesn't use "_Type" as typedef, only "type". |
|
Also on Maybe change like that? |
830b664 to
98c711d
Compare
98c711d to
64e0c16
Compare
|
Why clang-format wanna '&&is_integral_v<_Ty2>' 🤔 |
That is probably a bug. You can put |
Clang-format doesn't understand how to format variable templates in clang 9. We presently value the ability to mechanically clang-format over it being as pretty as possible. AFAIK @StephanTLavavej filed a bug against clang-format which they have slated to fix in Clang 10. |
|
This is LLVM-43055 "clang-format misformats We generally disable clang-format only when it behaves egregiously, in a way that can't be worked around with tricks like |
|
🤔 work around: |
6f3fc23 to
d2df8b8
Compare
|
Change log:
|
d2df8b8 to
93358ed
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
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 three minor issues and one significant issue regarding signed vs. unsigned. Thanks!
b3d1f62 to
4cc9ab7
Compare
|
|
Looks good! I think I can write a small test for this and prepare a Microsoft-internal PR. |
|
Thanks for the fix, we really appreciate it! |
Description
Will resolve issue #325.
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.