Fix compilation under ++20.

This commit is contained in:
Jeff Young 2020-09-26 13:12:46 +01:00
parent 035abe960c
commit 1844e8e0df
1 changed files with 3 additions and 0 deletions

View File

@ -409,6 +409,8 @@ std::ostream& operator<<( std::ostream& out, const wxSize& size );
std::ostream& operator<<( std::ostream& out, const wxPoint& pt );
#ifndef __cpp_concepts // a proxy for C++20 as there's no __cpp_contains macro
// TODO: remove this once we move to C++20.
namespace std
{
template<class Container, class Value>
@ -417,6 +419,7 @@ namespace std
return std::find( aContainer.begin(), aContainer.end(), aValue ) != aContainer.end();
}
}
#endif
/**