summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@google.com>2022-11-29 19:44:05 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2022-11-29 19:44:05 +0000
commita7acd5d5a7aa273be82972d5663c5fe2242e66c2 (patch)
treed176d97132ffb9c07d5e299f4d425aa60ce0d531
parenta6971bc969b5e30d7378507ac0e5f2227f8ee650 (diff)
parentb66923ab2d0deb82ca35dcdcb7f577bb0b887372 (diff)
downloadbase-a7acd5d5a7aa273be82972d5663c5fe2242e66c2.tar.gz
Merge "Switch to C++20"
-rw-r--r--core/jni/Android.bp2
-rw-r--r--native/android/Android.bp1
-rw-r--r--native/android/system_fonts.cpp3
3 files changed, 3 insertions, 3 deletions
diff --git a/core/jni/Android.bp b/core/jni/Android.bp
index 7cd7d2957d25..681f194d3bd3 100644
--- a/core/jni/Android.bp
+++ b/core/jni/Android.bp
@@ -40,6 +40,8 @@ cc_library_shared {
cppflags: ["-Wno-conversion-null"],
+ cpp_std: "gnu++20",
+
srcs: [
"android_animation_PropertyValuesHolder.cpp",
"android_os_SystemClock.cpp",
diff --git a/native/android/Android.bp b/native/android/Android.bp
index 8594ba5ca2da..f1b1d79265de 100644
--- a/native/android/Android.bp
+++ b/native/android/Android.bp
@@ -34,6 +34,7 @@ ndk_library {
cc_defaults {
name: "libandroid_defaults",
+ cpp_std: "gnu++20",
cflags: [
"-Wall",
"-Werror",
diff --git a/native/android/system_fonts.cpp b/native/android/system_fonts.cpp
index 9fe792958cef..8e90a6572478 100644
--- a/native/android/system_fonts.cpp
+++ b/native/android/system_fonts.cpp
@@ -66,9 +66,6 @@ struct AFont {
return mFilePath == o.mFilePath && mLocale == o.mLocale && mWeight == o.mWeight &&
mItalic == o.mItalic && mCollectionIndex == o.mCollectionIndex && mAxes == o.mAxes;
}
-
- AFont() = default;
- AFont(const AFont&) = default;
};
struct FontHasher {