Make sure lifetime of helper structs is less than owning struct

Imperatorn johan_forsberg_86 at hotmail.com
Mon Nov 15 22:33:42 UTC 2021


On Monday, 15 November 2021 at 22:27:24 UTC, Ali Çehreli wrote:
> On 11/15/21 1:58 PM, WebFreak001 wrote:
> > [...]
> wrote:
> >> [...]
> wrote:
> >> [...]
> the use of
> >>         [...]
> variable `file`
> > [...]
> copying the
> > [...]
> a pointer.
> I don't see how it solves the problem. Sebastiaan Koppe might 
> have intended to allocate the object dynamically with 'new' as 
> well?
>
> [...]

Are you compiling with preview=dip1000?


More information about the Digitalmars-d-learn mailing list