Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 1c85cbeb authored by Yi Kong's avatar Yi Kong
Browse files

Reexport operator!= overloads in the derived type to avoid ambiguous base class lookups

clang-r510928 is becoming stricter on ambiguous lookups, and produces the following error:

frameworks/av/media/codec2/vndk/include/util/C2InterfaceHelper.h:606:34: error: member 'operator!=' found in multiple base classes of different types
  606 |                 if (helper.get() != *typedParam->get()) {
      |                                  ^
frameworks/av/media/codec2/vndk/include/util/C2InterfaceHelper.h:587:23: note: while substituting into a lambda expression here
  587 |             setSetter([typedParam, fn, &deps...](
      |                       ^
...
frameworks/av/media/codec2/core/include/C2Param.h:430:17: note: member found by ambiguous name lookup
  430 |     inline bool operator!=(const C2Param &o) const { return !operator==(o); }
      |                 ^
frameworks/av/media/codec2/core/include/C2Config.h:1320:10: note: member found by ambiguous name lookup
 1320 |     bool operator!=(const C2RectStruct &) = delete;
      |          ^

Test: presubmit
Bug: 316272684
Change-Id: If199a6df9a426e24a1f02ee99d5a1d8d454ed769
parent e4eb1cb4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment