mirror of
https://github.com/boostorg/config.git
synced 2025-07-30 04:17:16 +02:00
Fix some C++23 testing issues:
Deprecated type_traits and non-const operator==. Fixes https://github.com/boostorg/config/issues/460
This commit is contained in:
@ -99,8 +99,11 @@ int test()
|
||||
using std::remove_all_extents;
|
||||
using std::remove_pointer;
|
||||
using std::add_pointer;
|
||||
#if !((__cplusplus > 202002L) || (defined(_MSVC_LANG) && (_MSVC_LANG > 202002L)))
|
||||
// deprecated in C++23:
|
||||
using std::aligned_storage;
|
||||
using std::aligned_union;
|
||||
#endif
|
||||
using std::decay;
|
||||
using std::enable_if;
|
||||
using std::conditional;
|
||||
|
@ -34,7 +34,7 @@ struct IdString
|
||||
{
|
||||
std::string name;
|
||||
int identifier;
|
||||
bool operator == (const IdString& other)
|
||||
bool operator == (const IdString& other)const
|
||||
{
|
||||
return identifier == other.identifier && name == other.name;
|
||||
}
|
||||
|
Reference in New Issue
Block a user