File tree Expand file tree Collapse file tree 4 files changed +16
-14
lines changed Expand file tree Collapse file tree 4 files changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -53,11 +53,10 @@ template<class E> const E* end(initializer_list<E> il) noexcept; // constexpr in
53
53
# pragma GCC system_header
54
54
# endif
55
55
56
- namespace std // purposefully not versioned
57
- {
58
-
59
56
# ifndef _LIBCPP_CXX03_LANG
60
57
58
+ _LIBCPP_BEGIN_UNVERSIONED_NAMESPACE_STD
59
+
61
60
template <class _Ep >
62
61
class _LIBCPP_NO_SPECIALIZATIONS initializer_list {
63
62
const _Ep* __begin_;
@@ -95,9 +94,9 @@ inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 const _Ep* end(initia
95
94
return __il.end ();
96
95
}
97
96
98
- # endif // !defined(_LIBCPP_CXX03_LANG)
97
+ _LIBCPP_END_UNVERSIONED_NAMESPACE_STD
99
98
100
- } // namespace std
99
+ # endif // !defined(_LIBCPP_CXX03_LANG)
101
100
102
101
# if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 20
103
102
# include < cstddef>
Original file line number Diff line number Diff line change @@ -244,8 +244,8 @@ namespace std {
244
244
_LIBCPP_PUSH_MACROS
245
245
# include < __undef_macros>
246
246
247
- namespace std // purposefully not using versioning namespace
248
- {
247
+ _LIBCPP_BEGIN_UNVERSIONED_NAMESPACE_STD
248
+ _LIBCPP_BEGIN_EXPLICIT_ABI_ANNOTATIONS
249
249
250
250
class _LIBCPP_EXPORTED_FROM_ABI _LIBCPP_AVAILABILITY_BAD_OPTIONAL_ACCESS bad_optional_access : public exception {
251
251
public:
@@ -257,7 +257,8 @@ public:
257
257
const char * what () const _NOEXCEPT override ;
258
258
};
259
259
260
- } // namespace std
260
+ _LIBCPP_END_EXPLICIT_ABI_ANNOTATIONS
261
+ _LIBCPP_END_UNVERSIONED_NAMESPACE_STD
261
262
262
263
# if _LIBCPP_STD_VER >= 17
263
264
Original file line number Diff line number Diff line change @@ -73,8 +73,8 @@ public:
73
73
74
74
_LIBCPP_END_NAMESPACE_STD
75
75
76
- namespace std // purposefully not using versioning namespace
77
- {
76
+ _LIBCPP_BEGIN_UNVERSIONED_NAMESPACE_STD
77
+ _LIBCPP_BEGIN_EXPLICIT_ABI_ANNOTATIONS
78
78
79
79
class _LIBCPP_EXPORTED_FROM_ABI logic_error : public exception {
80
80
# ifndef _LIBCPP_ABI_VCRUNTIME
@@ -207,7 +207,8 @@ public:
207
207
# endif
208
208
};
209
209
210
- } // namespace std
210
+ _LIBCPP_END_EXPLICIT_ABI_ANNOTATIONS
211
+ _LIBCPP_END_UNVERSIONED_NAMESPACE_STD
211
212
212
213
_LIBCPP_BEGIN_NAMESPACE_STD
213
214
Original file line number Diff line number Diff line change @@ -76,8 +76,8 @@ public:
76
76
# include < vcruntime_typeinfo.h>
77
77
# else
78
78
79
- namespace std // purposefully not using versioning namespace
80
- {
79
+ _LIBCPP_BEGIN_UNVERSIONED_NAMESPACE_STD
80
+ _LIBCPP_BEGIN_EXPLICIT_ABI_ANNOTATIONS
81
81
82
82
# if defined(_LIBCPP_ABI_MICROSOFT)
83
83
@@ -348,7 +348,8 @@ public:
348
348
const char * what () const _NOEXCEPT override ;
349
349
};
350
350
351
- } // namespace std
351
+ _LIBCPP_END_EXPLICIT_ABI_ANNOTATIONS
352
+ _LIBCPP_END_UNVERSIONED_NAMESPACE_STD
352
353
353
354
# endif // defined(_LIBCPP_ABI_VCRUNTIME)
354
355
You can’t perform that action at this time.
0 commit comments