bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nullptr in C++ mode on macOS


From: Bruno Haible
Subject: Re: nullptr in C++ mode on macOS
Date: Fri, 10 Feb 2023 09:58:00 +0100

Paul Eggert wrote:
> Let's treat C++ overloading like we already treat C _Generic, that is, 
> as a documented limitation of the substitute nullptr macro. This should 
> be good enough for Gnulib itself. I installed the attached to document 
> that, and to work around the Apple clang 14 incompatibility with it in mind.

It should also be good enough for real C++ packages such as groff and octave,
which both use nullptr but not nullptr_t.

> Yes, but all that's needed here is to implement Gnulib's limited 
> substitute well enough to work with Apple clang 14 and any other 
> compilers that have similar incompatibilities with current C++.

It works fine. Clever. Thank you!!

Thank you Arsen, for the proposal. I prefer Paul's approach because it
avoids getting deeper and deeper into the C++ swamp of complicated
inconsistencies.

Bruno






reply via email to

[Prev in Thread] Current Thread [Next in Thread]