C++20 fixes.

Structs with user-declared constructors are no longer aggregates.
Remove the user-declared constructors.

Bug: chromium:1284275
PiperOrigin-RevId: 450762391
This commit is contained in:
hai007
2022-05-24 13:58:08 -07:00
committed by Copybara-Service
parent a1e84f0597
commit 28acece858
-3
View File
@@ -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;