Skip to content

Commit 359f93b

Browse files
committed
build: only use flat_set when available
GCC 14 does not have flat_set despite -std=c++23 being accepted.
1 parent 9a010a5 commit 359f93b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

include/gromox/flat_set.hpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#pragma once
2-
#if __cplusplus >= 202300L
2+
#if __cplusplus >= 202000L
3+
#include <version>
4+
#ifdef __cpp_lib_flat_set
35
#include <flat_set>
46
namespace gromox {
57
template<typename T> using maybe_flat_set = std::flat_set<T>;
@@ -10,3 +12,4 @@ namespace gromox {
1012
template<typename T> using maybe_flat_set = std::set<T>;
1113
}
1214
#endif
15+
#endif

0 commit comments

Comments
 (0)