Bug 235075
Summary: | AppendPipeline.cpp:456:26: error: use of overloaded operator '!=' is ambiguous | ||
---|---|---|---|
Product: | WebKit | Reporter: | Yury Semikhatsky <yurys> |
Component: | WPE WebKit | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | aboya, bugs-noreply, dpino, pnormand, webkit-bug-importer |
Priority: | P2 | ||
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Linux |
Yury Semikhatsky
After the recent switch to c++20 compilation with clang on Linux (both GTK and WPE) fails with the following error:
../../../Source/WebCore/platform/graphics/gstreamer/mse/AppendPipeline.cpp:456:26: error: use of overloaded operator '!=' is ambiguous (with operand types 'GstIteratorAdaptor<_GstPad>::iterator' and 'GstIteratorAdaptor<_GstPad>::iterator')
for (GstPad* pad : GstIteratorAdaptor<GstPad>(GUniquePtr<GstIterator>(gst_element_iterate_src_pads(m_demux.get())))) {
^
../../../Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.h:392:14: note: candidate function
bool operator!=(const iterator& other) { return !(*this == other); }
^
../../../Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.h:388:14: note: candidate function
bool operator==(const iterator& other)
^
../../../Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.h:388:14: note: candidate function (with reversed parameter order)
../../../Source/WebCore/platform/graphics/gstreamer/mse/AppendPipeline.cpp:456:28: note: in implicit call to 'operator!=' for iterator of type 'GstIteratorAdaptor<_GstPad>'
for (GstPad* pad : GstIteratorAdaptor<GstPad>(GUniquePtr<GstIterator>(gst_element_iterate_src_pads(m_demux.get())))) {
^~~~~~~~~~~~~~~~~~
../../../Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.h:400:14: note: selected 'begin' function with iterator type 'GstIteratorAdaptor<_GstPad>::iterator'
iterator begin()
^
../../../Source/WebCore/platform/graphics/gstreamer/mse/AppendPipeline.cpp:471:26: error: use of overloaded operator '!=' is ambiguous (with operand types 'GstIteratorAdaptor<_GstPad>::iterator' and 'GstIteratorAdaptor<_GstPad>::iterator')
for (GstPad* pad : GstIteratorAdaptor<GstPad>(GUniquePtr<GstIterator>(gst_element_iterate_src_pads(m_demux.get())))) {
^
../../../Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.h:392:14: note: candidate function
bool operator!=(const iterator& other) { return !(*this == other); }
^
../../../Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.h:388:14: note: candidate function
bool operator==(const iterator& other)
^
../../../Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.h:388:14: note: candidate function (with reversed parameter order)
../../../Source/WebCore/platform/graphics/gstreamer/mse/AppendPipeline.cpp:471:28: note: in implicit call to 'operator!=' for iterator of type 'GstIteratorAdaptor<_GstPad>'
for (GstPad* pad : GstIteratorAdaptor<GstPad>(GUniquePtr<GstIterator>(gst_element_iterate_src_pads(m_demux.get())))) {
^~~~~~~~~~~~~~~~~~
../../../Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.h:400:14: note: selected 'begin' function with iterator type 'GstIteratorAdaptor<_GstPad>::iterator'
iterator begin()
^
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Philippe Normand
*** This bug has been marked as a duplicate of bug 235493 ***