Using a C++ class in a D associative array
kinke
noone at nowhere.com
Wed Aug 22 21:00:41 UTC 2018
On Wednesday, 22 August 2018 at 19:25:40 UTC, Jacob Carlborg
wrote:
> This could be solved, I think, with having "TypeInfo.getHash" a
> template taking the actual type and not void*. That template
> can then inspect if the passed type is a D class or any other
> type of class and act accordingly.
It could be simpler (and slower ;)) by using `m_flags &
ClassFlags.isCPPclass`.
More information about the Digitalmars-d
mailing list