From spec (Interfacing to C++) https://dlang.org/spec/cpp_interface.html:

```
When mapping a D class onto a C++ struct, use extern(C++, struct) to avoid linking problems with C++ compilers (notably MSVC) that distinguish between C++'s class and struct when mangling. Conversely, use extern(C++, class) to map a D struct onto a C++ class.
```

But this compiles error. Please help, thanks.

Reply via email to