From f3b9b1967ce80fe19b0bb73f2acac63274ee5ee0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rimas=20Misevi=C4=8Dius?= Date: Tue, 29 Oct 2024 19:49:27 +0200 Subject: [PATCH] Simplify str_arg_char specialization for ATL/MFC strings (C++20) Remove derived_from_CSimpleString concept and use constraint instead. --- include/upa/url_for_atl.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/include/upa/url_for_atl.h b/include/upa/url_for_atl.h index 82e3ae1..f85be0f 100644 --- a/include/upa/url_for_atl.h +++ b/include/upa/url_for_atl.h @@ -31,14 +31,11 @@ struct str_arg_char_for_atl { #ifdef UPA_CPP_20 // CStringT and CFixedStringT are derived from CSimpleStringT -template -concept derived_from_CSimpleString = +template requires std::derived_from> || std::derived_from> || std::derived_from> || - std::derived_from>; - -template + std::derived_from> struct str_arg_char : public str_arg_char_for_atl {}; #else // UPA_CPP_20