Commit d4b52ca
committed
fix(vm_runner): revert TRY_ASSIGN — template-arg commas break preprocessor
VMPILOT_TRY_ASSIGN(engine, VmEngine<Policy, Oram>::create(...)) doesn't
expand: the comma between 'Policy' and 'Oram' inside the template
argument list is visible to the C preprocessor as a macro argument
separator, so the call is read as three arguments instead of two and
'engine' is never bound.
Restore the three-line auto/check/deref form here; the macro is still
useful in vm_engine.cpp where none of the call expressions carry a
template argument list with a comma.1 parent 895fd1f commit d4b52ca
1 file changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | 9 | | |
12 | 10 | | |
13 | 11 | | |
| |||
56 | 54 | | |
57 | 55 | | |
58 | 56 | | |
59 | | - | |
| 57 | + | |
60 | 58 | | |
61 | | - | |
| 59 | + | |
| 60 | + | |
62 | 61 | | |
63 | | - | |
| 62 | + | |
64 | 63 | | |
65 | 64 | | |
66 | 65 | | |
| |||
0 commit comments