[Issue 16381] Wrapping a float4 array leads to segfault.
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Fri Aug 12 11:59:12 PDT 2016
    
    
  
https://issues.dlang.org/show_bug.cgi?id=16381
--- Comment #4 from b2.temp at gmx.com ---
(In reply to Bartek Siudeja from comment #3)
> True, but: 
> 
> My wrapper is a superclass of an abstract storage class, and not all
> implementations can return a reference to float4. Another superclass looks
> more or less like std.container.Array!bool, so the common interface/base
> class can't use ref.
I don't suggest you do to do like this. I've added the extra info for the
person who'll fix it. The information added by "it works with ref" is that the
copy is not valid since any access to ".ptr" leads to an AV.
--
    
    
More information about the Digitalmars-d-bugs
mailing list