Title
__cpp_lib_polymorphic_allocator is in the wrong header
Status
c++23
Section
[version.syn]
Submitter
Jonathan Wakely

Created on 2020-04-29.00:00:00 last changed 12 months ago

Messages

Date: 2020-11-09.21:40:50

Proposed resolution:

This wording is relative to N4861.

  1. Modify [version.syn] as indicated:

    […]
    #define __cpp_lib_parallel_algorithm    201603L // also in <algorithm>, <numeric>
    #define __cpp_lib_polymorphic_allocator 201902L // also in <memorymemory_resource>
    #define __cpp_lib_quoted_string_io      201304L // also in <iomanip>
    […]
    
Date: 2020-11-09.00:00:00

[ 2020-11-09 Approved In November virtual meeting. Status changed: Tentatively Ready → WP. ]

Date: 2020-05-15.00:00:00

[ 2020-05-09; Reflector prioritization ]

Set status to Tentatively Ready after six votes in favour during reflector discussions.

Date: 2020-04-29.00:00:00

[version.syn] says that __cpp_lib_polymorphic_allocator is also defined in <memory>, but std::polymorphic_allocator is defined in <memory_resource>. This seems like an error in P1902R1. The macro should be in the same header as the feature it relates to.

History
Date User Action Args
2023-11-22 15:47:43adminsetstatus: wp -> c++23
2020-11-09 21:40:50adminsetmessages: + msg11575
2020-11-09 21:40:50adminsetstatus: ready -> wp
2020-05-09 19:32:16adminsetmessages: + msg11277
2020-05-09 19:32:16adminsetstatus: new -> ready
2020-04-29 16:51:09adminsetmessages: + msg11243
2020-04-29 00:00:00admincreate