Skip to content

Commit 9b0c8ef

Browse files
authored
[libc++] Don't declare pmr::polymorphic_allocator before C++17 (#120850)
Fixes #120790
1 parent 3b8faee commit 9b0c8ef

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libcxx/include/__fwd/memory_resource.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
# pragma GCC system_header
1616
#endif
1717

18+
#if _LIBCPP_STD_VER >= 17
19+
1820
_LIBCPP_BEGIN_NAMESPACE_STD
1921

2022
namespace pmr {
@@ -24,4 +26,6 @@ class _LIBCPP_AVAILABILITY_PMR _LIBCPP_TEMPLATE_VIS polymorphic_allocator;
2426

2527
_LIBCPP_END_NAMESPACE_STD
2628

29+
#endif // _LIBCPP_STD_VER >= 17
30+
2731
#endif // _LIBCPP___FWD_MEMORY_RESOURCE_H

0 commit comments

Comments
 (0)