[Issue 21903] Class construction for C++ interop with -betterC

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri May 7 16:28:31 UTC 2021


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

--- Comment #2 from SHOO <zan77137 at nifty.com> ---
(In reply to Adam D. Ruppe from comment #1)
> Try
> 
> scope B b = new B();
> 
> it should work.

This method is not flexible enough for compound use of custom allocators,
templates, and classes without default constructors.

--


More information about the Digitalmars-d-bugs mailing list