no size yet for forward reference for nested structures

zeljkog via Digitalmars-d digitalmars-d at puremagic.com
Thu Jan 15 23:18:53 PST 2015


On 16.01.15 08:04, zeljkog wrote:
> On 15.01.15 23:30, Steven Schveighoffer wrote:
>> On 1/15/15 9:56 AM, zeljkog wrote:
>>> This compiles:
>>>
>>> import std.container;
>>>
>>> class Node
>>> {
>>>     DList!Node children;
>>> }
>>>
>>
>> Then use DList?
>>
>> DList is not SList, they were written by different people.
>>
>> -Steve
>
> SList.Range has moveFront, DList.Range does not.
>
> If I comment out SList.Range.moveFront, it compiles with SList.

And yes, looks like hasAliasing!Node (from std.algorithm.move) is only 
problem.


More information about the Digitalmars-d mailing list