mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-30 06:52:52 +00:00
Due to overload resolutions rules, this simple code provokes a crash: ReadonlyBytes readonly_bytes{}; FixedMemoryStream stream{readonly_bytes}; ReadonlyBytes give_them_back{stream.bytes()}; // -> Panics on VERIFY(m_writing_enabled); // but this is fine: auto bytes = static_cast<FixedMemoryStream const&>(*stream).bytes() If we need to be explicit about it, let's rename the overload instead of adding that `static_cast`. |
||
---|---|---|
.. | ||
Color | ||
Containers | ||
VP9 | ||
CMakeLists.txt | ||
DecoderError.h | ||
Forward.h | ||
PlaybackManager.cpp | ||
PlaybackManager.h | ||
Sample.h | ||
Track.h | ||
VideoDecoder.h | ||
VideoFrame.cpp | ||
VideoFrame.h |