mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
support C++20
This commit is contained in:
parent
4011502f5f
commit
a6f9a56e40
2 changed files with 8 additions and 1 deletions
|
@ -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 ())
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue