support C++20

This commit is contained in:
orignal 2023-01-06 14:08:39 -05:00
parent 4011502f5f
commit a6f9a56e40
2 changed files with 8 additions and 1 deletions

View file

@ -2273,7 +2273,11 @@ namespace transport
{
if (!msg) return;
int32_t msgID = msg->GetMsgID ();
#if __cplusplus >= 202002L // C++ 20 or higher
if (!m_ReceivedI2NPMsgIDs.contains (msgID))
#else
if (!m_ReceivedI2NPMsgIDs.count (msgID))
#endif
{
if (!msg->IsExpired ())
{