[Issue 19260] extern(C++) `T* const` mangling

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Sep 29 21:53:39 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=19260

--- Comment #5 from kinke at gmx.net ---
Well, as shown, D is flexible enough to overcome crappy situations like this,
albeit in cumbersome ways.

Just saying that I don't think it's worthwhile to come up, implement and
document solutions to exotic problems like this, which could also be tackled on
the C++ side. I take it you cannot simply add another C++ template, as that one
probably doesn't get instantiated on the C++ side, and aren't willing to hack
the STL either. Btw, cppreference says the signature is `T*`
[https://en.cppreference.com/w/cpp/memory/allocator/deallocate], so does MS
have to go its own route once again? ;)

--


More information about the Digitalmars-d-bugs mailing list