Structure of Arrays vs Array of Structures

Nordlöw via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue May 23 09:46:18 PDT 2017


On Monday, 15 May 2017 at 19:52:03 UTC, Nordlöw wrote:
> soa.d-mixin-143(143,7): Error: variable 
> soa.SOA!(S).SOA.container0LU cannot be further field because it 
> will change the determined SOA size
> soa.d-mixin-143(143,28): Error: variable 
> soa.SOA!(S).SOA.container1LU cannot be further field because it 
> will change the determined SOA size
> soa.d(193,14): Error: template instance soa.SOA!(S) error 
> instantiating
> soa.d(195,5): Error: static assert  (is(typeof((__error)()) == 
> int[])) is false
>
> What's wrong?

When I removed the scope qualifier I went forward with 
`opDispatch` to make it work here

http://forum.dlang.org/post/wvulryummkqtskiwrusb@forum.dlang.org

What about adding this little D-magic to std.typecons?


More information about the Digitalmars-d-learn mailing list