Thread overview
[Issue 15813] extern (C++) classes cannot be used as associative array keys
Mar 19, 2016
Walter Bright
Feb 19, 2020
Mathias LANG
Feb 19, 2020
Mathias LANG
Feb 19, 2020
Mathias LANG
Nov 07, 2022
RazvanN
Dec 17, 2022
Iain Buclaw
March 19, 2016
https://issues.dlang.org/show_bug.cgi?id=15813

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |C++
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=13875

--
February 19, 2020
https://issues.dlang.org/show_bug.cgi?id=15813

Mathias LANG <pro.mathias.lang@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |redballoon36@gmail.com

--- Comment #1 from Mathias LANG <pro.mathias.lang@gmail.com> ---
*** Issue 13875 has been marked as a duplicate of this issue. ***

--
February 19, 2020
https://issues.dlang.org/show_bug.cgi?id=15813

Mathias LANG <pro.mathias.lang@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code@dawg.eu

--- Comment #2 from Mathias LANG <pro.mathias.lang@gmail.com> ---
*** Issue 15765 has been marked as a duplicate of this issue. ***

--
February 19, 2020
https://issues.dlang.org/show_bug.cgi?id=15813

Mathias LANG <pro.mathias.lang@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pro.mathias.lang@gmail.com

--- Comment #3 from Mathias LANG <pro.mathias.lang@gmail.com> ---
Martin posted the following comment about why this happens:

```
Because TypeInfo_Class casts every void* to a standard Object, it ends up
calling the wrong vtable entries for operations like getHash.

I think we need a dedicated TypeInfo_CppClass that is similar to
TypeInfo_Struct with it's xopEquals and xopHash in order to fix this bug.
C++ classes don't inherit from the common Object class, so those methods must
not exist.
```

--
November 07, 2022
https://issues.dlang.org/show_bug.cgi?id=15813

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305@gmail.com
           Severity|normal                      |critical

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=15813

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P2

--