-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Add char_traits<uint8_t> #1820
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
base: master
Are you sure you want to change the base?
Add char_traits<uint8_t> #1820
Conversation
@microsoft-github-policy-service agree |
0bcfaff
to
396259a
Compare
Cpprestsdk fails to compile on newer MacOS due to missing char_traits. This provides the fix from microsoft/cpprestsdk#1820 Related to microsoft/cpprestsdk#1812
Cpprestsdk fails to compile on newer MacOS due to missing char_traits. This provides the fix from microsoft/cpprestsdk#1820 Related to microsoft/cpprestsdk#1812
Cpprestsdk fails to compile on newer MacOS due to missing char_traits. This provides the fix from microsoft/cpprestsdk#1820 Related to microsoft/cpprestsdk#1812
Cpprestsdk fails to compile on newer MacOS due to missing char_traits. This provides the fix from microsoft/cpprestsdk#1820 Related to microsoft/cpprestsdk#1812
This PR introduces undefined behavior: https://eel.is/c++draft/requirements#namespace.std-2 There is no program-defined type here. This also fails if 2 libraries try to do this. |
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.
The definition needs to be guarded
@@ -0,0 +1,74 @@ | |||
#include <cstdint> |
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.
#include <cstdint> | |
#pragma once | |
#include <cstddef> | |
#if (_LIBCPP_VERSION >= 190000) | |
#include <cstdint> |
|
||
static int_type eof() noexcept { return static_cast<int_type>(-1); } | ||
}; | ||
} // namespace std |
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.
} // namespace std | |
} // namespace std | |
#endif // (_LIBCPP_VERSION >= 190000) |
Fixes 1812
char_traits<uint8_t>
type was not supplied