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

Simplify str_arg_char specialization for ATL/MFC strings (C++20) #80

Merged
merged 1 commit into from
Oct 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions include/upa/url_for_atl.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,11 @@ struct str_arg_char_for_atl {
#ifdef UPA_CPP_20

// CStringT and CFixedStringT are derived from CSimpleStringT
template<class StrT>
concept derived_from_CSimpleString =
template<class StrT> requires
std::derived_from<StrT, ATL::CSimpleStringT<char, true>> ||
std::derived_from<StrT, ATL::CSimpleStringT<wchar_t, true>> ||
std::derived_from<StrT, ATL::CSimpleStringT<char, false>> ||
std::derived_from<StrT, ATL::CSimpleStringT<wchar_t, false>>;

template<derived_from_CSimpleString StrT>
std::derived_from<StrT, ATL::CSimpleStringT<wchar_t, false>>
struct str_arg_char<StrT> : public str_arg_char_for_atl<StrT> {};

#else // UPA_CPP_20
Expand Down