1
Description: Many such overload resolutions errors in C++20:
3
../../base/allocator/partition_allocator/starscan/metadata_allocator.h:43:8: note: candidate function [with U = unsigned int]
4
bool operator!=(const MetadataAllocator<U>& o) {
6
../../base/allocator/partition_allocator/starscan/metadata_allocator.h:38:8: note: candidate function [with U = unsigned int]
7
bool operator==(const MetadataAllocator<U>&) {
9
../../base/allocator/partition_allocator/starscan/metadata_allocator.h:38:8: note: candidate function (with reversed parameter order) [with U = unsigned int]
11
Refer to https://stackoverflow.com/a/60569879.
12
Author: Nathan Pratta Teodosio <nathan.teodosio@canonical.com>
15
--- a/build/config/compiler/BUILD.gn
16
+++ b/build/config/compiler/BUILD.gn
18
} else if (is_linux) {
19
# TODO(crbug.com/1284275): Switch to C++20 on all platforms.
21
- cflags_cc += [ "-std=${standard_prefix}++20" ]
22
+ cflags_cc += [ "-std=${standard_prefix}++17" ]
24
# The gcc bots are currently using GCC 9, which is not new enough to
25
# support "c++20"/"gnu++20".
26
- cflags_cc += [ "-std=${standard_prefix}++2a" ]
27
+ cflags_cc += [ "-std=${standard_prefix}++17" ]
30
cflags_cc += [ "-std=${standard_prefix}++17" ]