mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 07:36:10 -04:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user