C++ Logo

sg15

Advanced search

Re: [isocpp-sg15] [isocpp-sg21] P3835 -- Different contract checking for different libraries

From: René Ferdinand Rivera Morell <grafikrobot_at_[hidden]>
Date: Tue, 14 Oct 2025 09:18:28 -0500
On Tue, Oct 14, 2025 at 5:21 AM John Spicer via SG15 <sg15_at_[hidden]>
wrote:

>
> The reason for this is that if you currently use a macro like
> MY_LIB_ASSERT(x), then you have control over what it does, even when your
> header is used by someone else.
>

When using a macro this "even when your header is used by someone else" is
not possible. I.e. you don't actually have the control you think you have.

-- 
-- René Ferdinand Rivera Morell
-- Don't Assume Anything  -- No Supongas Nada
-- Robot Dreams - http://robot-dreams.net

Received on 2025-10-14 14:18:44