Add missing #include <algorithm> for std::min/std::max uses, and #include <limits> for std::numeric_limits<> (#7624)

This commit is contained in:
Even Rouault
2022-11-08 18:36:35 +01:00
committed by GitHub
parent 214cc94681
commit a22434e2a1
19 changed files with 32 additions and 5 deletions

View File

@@ -1,5 +1,6 @@
#include "annotated_binary_text_gen.h"
#include <algorithm>
#include <sstream>
#include <string>

View File

@@ -1,5 +1,6 @@
#include "binary_annotator.h"
#include <algorithm>
#include <limits>
#include <string>
#include <vector>
@@ -1416,4 +1417,4 @@ bool BinaryAnnotator::ContainsSection(const uint64_t offset) {
it->second.regions.back().length;
}
} // namespace flatbuffers
} // namespace flatbuffers

View File

@@ -16,6 +16,8 @@
#include "flatbuffers/flatc.h"
#include <algorithm>
#include <limits>
#include <list>
#include <sstream>

View File

@@ -16,6 +16,7 @@
// independent from idl_parser, since this code is not needed for most clients
#include <limits>
#include <string>
#include <unordered_set>

View File

@@ -16,6 +16,7 @@
// independent from idl_parser, since this code is not needed for most clients
#include <algorithm>
#include <sstream>
#include <string>

View File

@@ -14,7 +14,9 @@
* limitations under the License.
*/
#include <algorithm>
#include <iostream>
#include <limits>
#include "flatbuffers/code_generators.h"
#include "flatbuffers/idl.h"

View File

@@ -16,6 +16,8 @@
// independent from idl_parser, since this code is not needed for most clients
#include <algorithm>
#include "flatbuffers/flatbuffers.h"
#include "flatbuffers/flexbuffers.h"
#include "flatbuffers/idl.h"