Include <iterator> instead of <array> for std::size

As `std::size` nominally resides in `<iterator>`.
This commit is contained in:
Robert Müller 2022-06-15 21:22:36 +02:00
parent d4f0e5cf5e
commit da5ec5a0d2
4 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,5 @@
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */ /* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
/* If you are missing that file, acquire a complete release at teeworlds.com. */ /* If you are missing that file, acquire a complete release at teeworlds.com. */
#include <array> // std::size
#include <atomic> #include <atomic>
#include <cctype> #include <cctype>
#include <cmath> #include <cmath>
@ -9,6 +8,7 @@
#include <cstdlib> #include <cstdlib>
#include <cstring> #include <cstring>
#include <ctime> #include <ctime>
#include <iterator> // std::size
#include <thread> #include <thread>
#include "system.h" #include "system.h"

View file

@ -4,7 +4,7 @@
#include "compression.h" #include "compression.h"
#include <array> // std::size #include <iterator> // std::size
// Format: ESDDDDDD EDDDDDDD EDD... Extended, Data, Sign // Format: ESDDDDDD EDDDDDDD EDD... Extended, Data, Sign
unsigned char *CVariableInt::Pack(unsigned char *pDst, int i, int DstSize) unsigned char *CVariableInt::Pack(unsigned char *pDst, int i, int DstSize)

View file

@ -14,7 +14,7 @@
#include "console.h" #include "console.h"
#include "linereader.h" #include "linereader.h"
#include <array> // std::size #include <iterator> // std::size
#include <new> #include <new>
// todo: rework this // todo: rework this

View file

@ -3,8 +3,8 @@
#include <base/logger.h> #include <base/logger.h>
#include <base/system.h> #include <base/system.h>
#include <array> // std::size
#include <cstdlib> #include <cstdlib>
#include <iterator> // std::size
#include <thread> #include <thread>