Incomplete types question

NoUseForAName via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jul 8 05:38:50 PDT 2014


On Tuesday, 8 July 2014 at 12:04:40 UTC, Marc Schütz wrote:
> Addendum: You also need to protect the members of MyStructImpl, 
> like so:
>
> private struct MyStructImpl {
> private:  // or `package:`
>     int x;
> }
>
> Otherwise, they would still be accessible via dereferencing.

Thanks again.


More information about the Digitalmars-d-learn mailing list