WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 235493
235075
AppendPipeline.cpp:456:26: error: use of overloaded operator '!=' is ambiguous
https://bugs.webkit.org/show_bug.cgi?id=235075
Summary
AppendPipeline.cpp:456:26: error: use of overloaded operator '!=' is ambiguous
Yury Semikhatsky
Reported
2022-01-11 11:03:15 PST
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
Comment 1
2022-01-23 09:33:02 PST
*** This bug has been marked as a duplicate of
bug 235493
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug