mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
support C++20
This commit is contained in:
@@ -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 ())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user