chromium-constexpr.patch 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. diff --git a/base/types/strong_alias.h b/base/types/strong_alias.h
  2. index 9f80b7fc8adf..4d28bd195c8a 100644
  3. --- a/base/types/strong_alias.h
  4. +++ b/base/types/strong_alias.h
  5. @@ -110,7 +110,7 @@ class StrongAlias {
  6. // a `StrongAlias<W>`.
  7. friend constexpr auto operator<=>(const StrongAlias& lhs,
  8. const StrongAlias& rhs) = default;
  9. - friend constexpr bool operator==(const StrongAlias& lhs,
  10. + friend bool operator==(const StrongAlias& lhs,
  11. const StrongAlias& rhs) = default;
  12. // Hasher to use in std::unordered_map, std::unordered_set, etc.
  13. diff --git a/components/autofill/core/common/unique_ids.h b/components/autofill/core/common/unique_ids.h
  14. index eb8d5d2c8ec9..6bfabf286379 100644
  15. --- a/components/autofill/core/common/unique_ids.h
  16. +++ b/components/autofill/core/common/unique_ids.h
  17. @@ -137,7 +137,7 @@ struct GlobalId {
  18. friend constexpr auto operator<=>(const GlobalId<RendererId>& lhs,
  19. const GlobalId<RendererId>& rhs) = default;
  20. - friend constexpr bool operator==(const GlobalId<RendererId>& lhs,
  21. + friend bool operator==(const GlobalId<RendererId>& lhs,
  22. const GlobalId<RendererId>& rhs) = default;
  23. };
  24. diff --git a/components/performance_manager/resource_attribution/query_params.h b/components/performance_manager/resource_attribution/query_params.h
  25. index 4616f1665e91..679dfcabe999 100644
  26. --- a/components/performance_manager/resource_attribution/query_params.h
  27. +++ b/components/performance_manager/resource_attribution/query_params.h
  28. @@ -29,7 +29,7 @@ class ContextCollection {
  29. ContextCollection(const ContextCollection& other);
  30. ContextCollection& operator=(const ContextCollection& other);
  31. - friend constexpr bool operator==(const ContextCollection&,
  32. + friend bool operator==(const ContextCollection&,
  33. const ContextCollection&) = default;
  34. // Adds `context` to the collection.
  35. @@ -67,7 +67,7 @@ struct QueryParams {
  36. QueryParams(const QueryParams& other);
  37. QueryParams& operator=(const QueryParams& other);
  38. - friend constexpr bool operator==(const QueryParams&,
  39. + friend bool operator==(const QueryParams&,
  40. const QueryParams&) = default;
  41. // Resource types to measure.