Emilio Cobos Álvarez
Emilio Cobos Álvarez
I mean, I could, but I have no real incentive to right now and cbindgen is just a free-time kinda thing. So I'd rather let other people help with the...
Does using a type alias work around the issue? Could you post some concrete code so I can see how that looks? In general it might not be totally unreasonable,...
If you cannot do templates in extern, you may be better off using `--lang c`, or c-with-cpp-compat? That monomorphizes the inputs, so you'd get something like: ```c #include #include #include...
So that explicitly instantiates it, right? Is that enough to appease msvc? Can you post the full msvc error message? it's unclear to me what it's complaining about.
Sure, sounds fine to do that then, but with the precondition of a bug reported to MSVC... I don't think the explicit instantiation should be needed.
Well, the clang warning makes sense, but it's just that, a warning. It just says that since it doesn't know whether there's an specialization or not somewhere else, someone could...
And yeah, it's annoying that multiple instantiations are rejected... Probably we should output all the explicit instantiations right after the class definition (without duplicates).
That kinda relies on the linker not linking them right? That is indeed a bit annoying as well. I wonder if there's a way to force instantiation without affecting the...
So, I did some work on FFI-safety, and the best way I've found to do this so far without tweaking cbindgen is just adding the explicit instantiations in the `trailer`....
> I've set style="tag" in my cbindgen.toml but that only seems to affect structs declared by cbindgen and their usage. How can I get cbindgen to use struct foo* instead...