removed C++17 check

This commit is contained in:
orignal 2024-09-02 18:22:33 -04:00
parent a3e0b3710c
commit cc59003560
9 changed files with 4 additions and 52 deletions

View file

@ -587,11 +587,7 @@ namespace transport
if (!resentPackets.empty ())
{
m_LastResendTime = ts;
#if (__cplusplus >= 201703L) // C++ 17 or higher
m_SentPackets.merge (resentPackets);
#else
m_SentPackets.insert (resentPackets.begin (), resentPackets.end ());
#endif
m_WindowSize >>= 1; // /2
if (m_WindowSize < SSU2_MIN_WINDOW_SIZE) m_WindowSize = SSU2_MIN_WINDOW_SIZE;
return resentPackets.size ();