-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Various cleanups #2140
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
Various cleanups #2140
Changes from all commits
f8bd64f
dbf1b0c
b087a33
0297b19
b9ea785
563714a
0ed74f9
6575910
51ea5ae
3cb7042
ac95e58
2fa59f1
959faf0
a30b6ff
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 |
|---|---|---|
|
|
@@ -95,7 +95,7 @@ _NODISCARD inline int stoi(const string& _Str, size_t* _Idx = nullptr, int _Base | |
| _Xinvalid_argument("invalid stoi argument"); | ||
| } | ||
|
|
||
| if (_Errno_ref == ERANGE || _Ans < INT_MIN || INT_MAX < _Ans) { | ||
|
Contributor
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. will this break icc? I mean I don't care, but that may be why we checked this in the first place
Member
Author
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 (as we try to avoid gratuitous breaks). It shouldn't - the Intel C++ Compiler issues we've encountered have involved 80-bit This was originally being checked because MSVC's STL was licensed from Dinkumware, where the upstream source code was portable to many platforms. |
||
| if (_Errno_ref == ERANGE) { | ||
| _Xout_of_range("stoi argument out of range"); | ||
| } | ||
|
|
||
|
|
@@ -276,7 +276,7 @@ _NODISCARD inline int stoi(const wstring& _Str, size_t* _Idx = nullptr, int _Bas | |
| _Xinvalid_argument("invalid stoi argument"); | ||
| } | ||
|
|
||
| if (_Errno_ref == ERANGE || _Ans < INT_MIN || INT_MAX < _Ans) { | ||
| if (_Errno_ref == ERANGE) { | ||
| _Xout_of_range("stoi argument out of range"); | ||
| } | ||
|
|
||
|
|
||
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.