On Monday, 19 June 2023 at 05:32:23 UTC, Richard (Rikki) Andrew Cattermole wrote:
This is just a guess, but I think the problem is the vtable is incomplete.

Because of this the offsets are wrong. So you wouldn't be calling push_back.

So, you mean on the D side, it need to list all the fields and methods of the C++ class?

```d
class std_list(T) {
  @disable this();
  void push_back(const ref T value);
}
```

Then it will be very tedious, esp. for such library class std::list.

Is there a tool that can automate this?

Thanks.

  • Using C++ Classe... mw via Digitalmars-d-learn
    • Re: Using C... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
      • Re: Usi... mw via Digitalmars-d-learn
        • Re:... mw via Digitalmars-d-learn
        • Re:... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
          • ... mw via Digitalmars-d-learn
            • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
              • ... mw via Digitalmars-d-learn
                • ... mw via Digitalmars-d-learn
    • Using C++ C... Matheus Catarino via Digitalmars-d-learn
      • Re: Usi... Emmanuel Danso Nyarko via Digitalmars-d-learn
        • Re:... Matheus Catarino via Digitalmars-d-learn
          • ... Emmanuel Danso Nyarko via Digitalmars-d-learn

Reply via email to