It’s just both using c abi right?
Direct C++ interop is doable, by embedding Clang into Zig and using its AST, but this is significantly more work and it needs to be done in the Zig compiler. As a Zig user, going through C is about as good as you can do, probably.
fn stackExample() void {
var some_cpp_type: c.SomeCppType = undefined;
c.some_cpp_type_ctor(&some_cpp_type);
defer c.some_cpp_type_dtor(&some_cpp_type);
// ...
}