Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The ValKind::operator<< uses ostream, but the include was missing. os…
…tream is used so commonly that it's usually included by some other header. However, if you use wasmtime.hh as your first (or only) include, then you get a massive compile error on Apple toolchain compilers (I'm using xcode 16). The error does not reproduce on Linux. (#60) The error when this include is missing is: ``` include/wasmtime.hh:519:32: error: invalid operands to binary expression ('std::ostream' (aka 'basic_ostream<char>') and 'const char[4]') 519 | WASMTIME_FOR_EACH_VAL_KIND(CASE_KIND_PRINT_NAME) third-party/wasmtime-cpp/include/wasmtime.hh:504:3: note: expanded from macro 'WASMTIME_FOR_EACH_VAL_KIND' 504 | X(I32, "i32", WASM_I32) \ | ^~~~~~~~~~~~~~~~~~~~~~~ third-party/wasmtime-cpp/include/wasmtime.hh:517:8: note: expanded from macro 'CASE_KIND_PRINT_NAME' 517 | os << name; \ ```
- Loading branch information