Fix C++14 build with GCC 12
Since adding bits/utility.h in commit e9a8c48e4f, a C++14 build with GCC 12 (and potentially also other compiler versions) failed with ``` While building module 'Core': While building module 'std' imported from input_line_1:1: In file included from <module-includes>:38: /opt/gcc/12.2.0/include/c++/12.2.0/functional:337:35: error: missing '#include <bits/utility.h>'; 'tuple_size' must be declared before it is used = typename enable_if<(__i < tuple_size<_Tuple>::value), ^ /opt/gcc/12.2.0/include/c++/12.2.0/bits/utility.h:49:12: note: declaration here is not visible struct tuple_size; ^ ``` Apparently, once the module is declared, it must also be enabled for C++14 and not restricted with cplusplus17.
This commit is contained in:
parent
5f576a2ba8
commit
badb929352
@ -557,7 +557,6 @@ module "std" [system] {
|
||||
header "bits/uniform_int_dist.h"
|
||||
}
|
||||
module "bits/utility.h" [optional] {
|
||||
requires cplusplus17
|
||||
export *
|
||||
header "bits/utility.h"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user