Commit 23518dae authored by Clemens Backes's avatar Clemens Backes Committed by V8 LUCI CQ

Fix template deduction guide for WasmSectionIterator

The previous declaration was failing on GCC, because the argument types
did not match the actual constructor. The second parameter needs to be a
reference.

R=jkummerow@chromium.org

Bug: v8:13069
Change-Id: I151b44e05cd8b45da8f737ab84da063e491f3292
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3779683Reviewed-by: 's avatarAndreas Haas <ahaas@chromium.org>
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Cr-Commit-Position: refs/heads/main@{#81866}
parent 91e918c1
...@@ -299,7 +299,7 @@ class WasmSectionIterator { ...@@ -299,7 +299,7 @@ class WasmSectionIterator {
// Add an explicit template deduction guide for {WasmSectionIterator}. // Add an explicit template deduction guide for {WasmSectionIterator}.
template <class T> template <class T>
WasmSectionIterator(Decoder*, T) -> WasmSectionIterator<T>; WasmSectionIterator(Decoder*, T&) -> WasmSectionIterator<T>;
// The main logic for decoding the bytes of a module. // The main logic for decoding the bytes of a module.
template <class Tracer> template <class Tracer>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment