C++ Logo

liaison

Advanced search

Re: [wg14/wg21 liaison] Character literals in preprocessing directive

From: Joseph Myers <joseph_at_[hidden]>
Date: Mon, 15 Feb 2021 20:33:16 +0000
On Mon, 15 Feb 2021, Corentin via Liaison wrote:

> Link is now https://isocpp.org/files/papers/P2316R0.pdf

At the last WG14 meeting I asked if anyone was still using a preprocessor
separate from the compiler that did not have configuration information
about types from the compiler (about the number of bits in char, in the
case of the #embed discussion), and was advised that separate
preprocessors like that were indeed still in use.

I suppose that allowing character literals to have different values in #if
is another thing intended to help such preprocessor implementations that
are more or less independent of the compiler. So while I support
requiring literals to have the same values in the compiler and the
preprocessor, there may be concerns from those using such a separate
preprocessor.

-- 
Joseph S. Myers
joseph_at_[hidden]

Received on 2021-02-15 14:33:24