C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Real World Programming, private = public

From: Andrey Semashev <andrey.semashev_at_[hidden]>
Date: Sat, 2 Sep 2023 17:27:43 +0300
On 9/2/23 16:45, Frederick Virchanza Gotham via Std-Proposals wrote:
> On Sat, Sep 2, 2023 at 5:42 AM Sebastian Wittmeier wrote:
>>
>> Use a friend function.
>
> You'd have to edit the header file to do that. The idea is not to have
> to edit the header file.

Defining a macro that affects the header is equivalent to editing the
header.

Received on 2023-09-02 14:27:46