enh(cmake): Add option POCO_ENABLE_CPP20 to enable C++20 when compiling Poco (#4956)

* enh(cmake): Add option POCO_CXX20 to enable standard C++20 and related changes.

* chore(cmake): do not allow C++20 setting for compilers that do not support it properly.

* fix(NetSSL_Win): indentation.
This commit is contained in:
Matej Kenda
2025-05-28 15:35:28 +02:00
committed by GitHub
parent 5e5e1a60f9
commit 15d987fbb0
12 changed files with 113 additions and 61 deletions

View File

@@ -260,12 +260,6 @@ struct UTF32CharTraits
};
//#if defined(POCO_ENABLE_CPP11) //TODO
// using char16_t UTF16Char;
// using std::u16string UTF16String;
// using char32_t UTF32Char;
// using std::u32string UTF32String;
//#else
#ifdef POCO_NO_WSTRING
using UTF16Char = Poco::UInt16;
using UTF16String = std::basic_string<UTF16Char, UTF16CharTraits>;
@@ -301,7 +295,6 @@ struct UTF32CharTraits
#define POCO_USE_STRING16
#endif //POCO_OS_FAMILY_WINDOWS
#endif //POCO_NO_WSTRING
//#endif // POCO_ENABLE_CPP11
} // namespace Poco