Created on 2013-01-29.00:00:00 last changed 2 weeks ago
Proposed resolution (approved by CWG 2026-06-26):
Change in 15.12 [cpp.predefined] paragraph 1 as follows:
- ...
- __STDC_HOSTED__
- The integer literal 1 if the implementation is a hosted implementation or the integer literal 0 if it is a freestanding implementation (4.1 [intro.compliance]).
- __STDC_UTF_16__
- The integer literal 1.
- __STDC_UTF_32__
- The integer literal 1.
(Originally submitted as LWG issue 2237.)
The macros __STDC_UTF_16__ and __STDC_UTF_32__ are predefined by a C implementation. C++ is missing them.
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2026-06-26 22:53:47 | admin | set | status: open -> tentatively ready |
| 2026-06-11 21:47:15 | admin | set | messages: + msg8602 |
| 2013-01-29 00:00:00 | admin | create | |