C++ Logo

sg15

Advanced search

Re: "logical name" of importable headers

From: Daniel Ruoso <daniel_at_[hidden]>
Date: Fri, 3 Jun 2022 17:00:37 -0400
Em sex., 3 de jun. de 2022 às 16:48, Gabriel Dos Reis
<gdr_at_[hidden]> escreveu:
> Do you see silent semantics change, or a loud compilation break?
> Any example?

One example is the version macros for specific things, such as
#define __cpp_lib_scoped_lock 201703
in the mutex header on libstdc++.

If that macro is no longer in scope after the code says #include
<mutex>, it could silently change behavior if anyone has an #if on
that macro.

daniel

Received on 2022-06-03 21:00:49