Logical location of template instantiations
Basile B. via Digitalmars-d
digitalmars-d at puremagic.com
Fri Jul 1 10:46:47 PDT 2016
On Friday, 1 July 2016 at 14:14:00 UTC, Steven Schveighoffer
wrote:
> On 7/1/16 9:46 AM, Andrei Alexandrescu wrote:
>> On 07/01/2016 09:08 AM, Steven Schveighoffer wrote:
>
>>>
>>> I wonder what the plans are for std.allocator on this, as I
>>> would think
>>> it would run into the same issues. Andrei?
>>
>> emplace only works with accessible constructors. I understand
>> sometimes
>> it's reasonable to ask for more flexibility, but there are
>> limitations.
>
> Right, but this puts allocators at a lower footing than the GC
> which has no problem with private ctors. I would have expected
> to be able to build using allocators and private ctors.
>
> -Steve
+1
More information about the Digitalmars-d
mailing list