Skip to content
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

Remove TranslateUnicodeToOem and all related code #14745

Merged
merged 12 commits into from
Feb 28, 2023
3 changes: 1 addition & 2 deletions src/host/readDataDirect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@ try
}
catch (...)
{
// There doesn't seem to be a way to just get the NT exception code with WIL.
*pReplyStatus = NTSTATUS_FROM_HRESULT(wil::ResultFromCaughtException());
*pReplyStatus = wil::StatusFromCaughtException();
return true;
}

Expand Down
15 changes: 4 additions & 11 deletions src/inc/til/type_traits.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,14 @@ namespace til
struct is_contiguous_view : std::false_type
{
};
// std::span remains largely unused in this code base so far.
//template<typename U, std::size_t E>
//struct is_contiguous_view<std::span<U, E>> : std::true_type
//{
//};
template<typename U, typename V>
struct is_contiguous_view<std::basic_string_view<U, V>> : std::true_type
{
};
#ifdef GSL_SPAN_H
template<typename U, std::size_t E>
struct is_contiguous_view<std::span<U, E>> : std::true_type
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rofl, oops

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah woops. 😅 Well, problem fixed!

{
};
#endif
template<typename U, typename V>
struct is_contiguous_view<std::basic_string_view<U, V>> : std::true_type
{
};

template<typename T>
struct is_byte : std::false_type
Expand Down