std.allocator needs your help
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Mon Sep 23 14:15:44 PDT 2013
On 9/23/13 1:32 PM, Timon Gehr wrote:
> One issue you will probably run into and maybe want to fix in some way
> during the typed allocator design is that private constructors cannot be
> called from templates parameterized on types.
Hrm, that's a real problem. We've ran into it at work when we were
trying to replace a macro with a template. The macro is automatically
friend with everyone! :o)
> Is there an intention to also support replacements of instance new
> allocations, i.e. object.new subobject(args)?
It's a good point to keep in mind as we move further with this.
Andrei
More information about the Digitalmars-d
mailing list