summaryrefslogtreecommitdiff
path: root/src/wasm.h
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2022-04-25 13:20:27 -0700
committerGitHub <noreply@github.com>2022-04-25 13:20:27 -0700
commit23a1a79603d5d102b82558c7822eaa1bbed16fd2 (patch)
tree01e40cf7cd7b9b22d3a118bd18e3878c90f29448 /src/wasm.h
parent94d77efa788b46ec3d245fd0e180163877fe2a88 (diff)
downloadbinaryen-23a1a79603d5d102b82558c7822eaa1bbed16fd2.tar.gz
binaryen-23a1a79603d5d102b82558c7822eaa1bbed16fd2.tar.bz2
binaryen-23a1a79603d5d102b82558c7822eaa1bbed16fd2.zip
SmallSet: Mark iterator parent as const (#4613)
We already assume the parent does not change, binaryen/src/support/small_set.h Lines 202 to 208 in 94d77ef // std::set allows changes while iterating. For us here, though, it would // be nontrivial to support that given we have two iterators that we // generalize over (switching "in the middle" would not be easy or fast), // so error on that. if (usingFixed != other.usingFixed) { Fatal() << "SmallSet does not support changes while iterating"; } This also marks the parent as const to reflect that. This fixed a weird C++ compilation error I had when working on something unrelated, but seems worth landing independently.
Diffstat (limited to 'src/wasm.h')
0 files changed, 0 insertions, 0 deletions