C++ Logo


Advanced search

Re: [std-proposals] Impose friendship when needed

From: Thiago Macieira <thiago_at_[hidden]>
Date: Mon, 18 Jul 2022 13:11:32 -0700
On Monday, 18 July 2022 03:26:47 PDT Sebastian Wittmeier via Std-Proposals
> If the library was compiled in binary form, changing the access modifier can
> break compatibility of class layout. But under controlled circumstances
> this could be a successful hack (and its success can be automatically
> tested with offsetof, etc., for each class member)

Some compilers include the access level in the mangling of functions or static
members, so that solution would break on those environments.

Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DPG Cloud Engineering

Received on 2022-07-18 20:11:34