From 28acece858559edd000f2c21e73c63b4ffa2172d Mon Sep 17 00:00:00 2001 From: hai007 Date: Tue, 24 May 2022 13:56:15 -0700 Subject: [PATCH] C++20 fixes. Structs with user-declared constructors are no longer aggregates. Remove the user-declared constructors. Bug: chromium:1284275 PiperOrigin-RevId: 450762391 --- connections/medium_selector.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/connections/medium_selector.h b/connections/medium_selector.h index dede1b8d..3d66458a 100644 --- a/connections/medium_selector.h +++ b/connections/medium_selector.h @@ -31,9 +31,6 @@ struct MediumSelector { T wifi_lan; T wifi_hotspot; - constexpr MediumSelector() = default; - constexpr MediumSelector(const MediumSelector&) = default; - constexpr MediumSelector& operator=(const MediumSelector&) = default; constexpr bool Any(T value) const { return bluetooth == value || ble == value || web_rtc == value || wifi_lan == value || wifi_hotspot == value;