Merge pull request #461 from boostorg/issue460

Fix some C++23 testing issues:
This commit is contained in:
jzmaddock
2022-12-08 11:31:52 +00:00
committed by GitHub
2 changed files with 4 additions and 1 deletions

View File

@ -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;

View File

@ -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;
}