-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Use consistent phrasing of required standard mode #252
Changes from 4 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,9 @@ | |
#define _RANGES_ | ||
#include <yvals_core.h> | ||
#if _STL_COMPILER_PREPROCESSOR | ||
#ifdef __cpp_lib_concepts | ||
#ifndef __cpp_lib_concepts | ||
#pragma message("The contents of <ranges> are available only with C++20 concepts support.") | ||
#else // ^^^ !defined(__cpp_lib_concepts) / defined(__cpp_lib_concepts) vvv | ||
#include <iterator> | ||
|
||
#pragma pack(push, _CRT_PACKING) | ||
|
@@ -34,8 +36,6 @@ _STD_END | |
_STL_RESTORE_CLANG_WARNINGS | ||
#pragma warning(pop) | ||
#pragma pack(pop) | ||
#else // ^^^ Concepts support / no Concepts vvv | ||
#pragma message("The contents of <ranges> are only available with C++20 concepts support.") | ||
#endif // __cpp_lib_concepts | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should these be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good question. Our current practice is inconsistent (because we've added arrow comments over the years). Your PR currently follows one of our patterns - repeating the macro name as the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well I assume they would eventually be replaced with |
||
#endif // _STL_COMPILER_PREPROCESSOR | ||
#endif // _RANGES_ |
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.
I am usually the person who hates inverted conditionals with else, but I think this is the exception that proves the rule :) Thanks!