When I pass a std::vector
to swift's print function like so:
namespace cxx_target{
using StringVector = std::vector<std::string>;
}
import cxx_target
var sv = cxx_target.StringVector()
print(sv)
It results in an EXC_BAD_ACCESS
error.
Is that a normal/expected behaviour (like, for example, a result of UB)?
I vaguely recall it used to work in earlier version of Swift (or well, at least not crash)...
Were there some changes in how it's handled, or is my memory playing tricks on me?