On Sunday, 25 September 2022 at 23:23:51 UTC, Nicholas Wilson
wrote:
On Saturday, 24 September 2022 at 07:04:34 UTC, Gregor Mückl
wrote:
extern(C++) extern(C++, class) struct Foo(T) {
T a, b;
}
alias FooFloat = Foo!float;
extern(C++) void bar(FooFloat f);
```
This works when you mirror al
On Saturday, 24 September 2022 at 07:04:34 UTC, Gregor Mückl
wrote:
Hi!
I have a D template struct that reimplements a C++ class
template with identical memory layout for a set of types that
matter to me. Now, I want to use some C++ functions and classes
that use these template instances, fro
Hi!
I have a D template struct that reimplements a C++ class template
with identical memory layout for a set of types that matter to
me. Now, I want to use some C++ functions and classes that use
these template instances, from D. For that, I want to
purposefully alias the D and C++ types. How