@@ -118,7 +118,7 @@ class _LIBCPP_EXCEPTION_ABI bad_weak_ptr
118118_LIBCPP_NORETURN inline _LIBCPP_INLINE_VISIBILITY
119119void __throw_bad_weak_ptr ()
120120{
121- #ifndef _LIBCPP_NO_EXCEPTIONS
121+ #ifndef _LIBCPP_HAS_NO_EXCEPTIONS
122122 throw bad_weak_ptr ();
123123#else
124124 _VSTD::abort ();
@@ -508,10 +508,10 @@ class _LIBCPP_SHARED_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS shared_ptr
508508 shared_ptr (_Yp* __p, _Dp __d)
509509 : __ptr_(__p)
510510 {
511- #ifndef _LIBCPP_NO_EXCEPTIONS
511+ #ifndef _LIBCPP_HAS_NO_EXCEPTIONS
512512 try
513513 {
514- #endif // _LIBCPP_NO_EXCEPTIONS
514+ #endif // _LIBCPP_HAS_NO_EXCEPTIONS
515515 typedef typename __shared_ptr_default_allocator<_Yp>::type _AllocT;
516516 typedef __shared_ptr_pointer<_Yp*, _Dp, _AllocT> _CntrlBlk;
517517#ifndef _LIBCPP_CXX03_LANG
@@ -520,25 +520,25 @@ class _LIBCPP_SHARED_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS shared_ptr
520520 __cntrl_ = new _CntrlBlk (__p, __d, _AllocT ());
521521#endif // not _LIBCPP_CXX03_LANG
522522 __enable_weak_this (__p, __p);
523- #ifndef _LIBCPP_NO_EXCEPTIONS
523+ #ifndef _LIBCPP_HAS_NO_EXCEPTIONS
524524 }
525525 catch (...)
526526 {
527527 __d (__p);
528528 throw ;
529529 }
530- #endif // _LIBCPP_NO_EXCEPTIONS
530+ #endif // _LIBCPP_HAS_NO_EXCEPTIONS
531531 }
532532
533533 template <class _Yp , class _Dp , class _Alloc , class = __enable_if_t <__shared_ptr_deleter_ctor_reqs<_Dp, _Yp, _Tp>::value> >
534534 _LIBCPP_HIDE_FROM_ABI
535535 shared_ptr (_Yp* __p, _Dp __d, _Alloc __a)
536536 : __ptr_ (__p)
537537 {
538- #ifndef _LIBCPP_NO_EXCEPTIONS
538+ #ifndef _LIBCPP_HAS_NO_EXCEPTIONS
539539 try
540540 {
541- #endif // _LIBCPP_NO_EXCEPTIONS
541+ #endif // _LIBCPP_HAS_NO_EXCEPTIONS
542542 typedef __shared_ptr_pointer<_Yp*, _Dp, _Alloc> _CntrlBlk;
543543 typedef typename __allocator_traits_rebind<_Alloc, _CntrlBlk>::type _A2;
544544 typedef __allocator_destructor<_A2> _D2;
@@ -552,51 +552,51 @@ class _LIBCPP_SHARED_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS shared_ptr
552552#endif // not _LIBCPP_CXX03_LANG
553553 __cntrl_ = _VSTD::addressof (*__hold2.release ());
554554 __enable_weak_this (__p, __p);
555- #ifndef _LIBCPP_NO_EXCEPTIONS
555+ #ifndef _LIBCPP_HAS_NO_EXCEPTIONS
556556 }
557557 catch (...)
558558 {
559559 __d (__p);
560560 throw ;
561561 }
562- #endif // _LIBCPP_NO_EXCEPTIONS
562+ #endif // _LIBCPP_HAS_NO_EXCEPTIONS
563563 }
564564
565565 template <class _Dp >
566566 _LIBCPP_HIDE_FROM_ABI
567567 shared_ptr (nullptr_t __p, _Dp __d)
568568 : __ptr_ (nullptr )
569569 {
570- #ifndef _LIBCPP_NO_EXCEPTIONS
570+ #ifndef _LIBCPP_HAS_NO_EXCEPTIONS
571571 try
572572 {
573- #endif // _LIBCPP_NO_EXCEPTIONS
573+ #endif // _LIBCPP_HAS_NO_EXCEPTIONS
574574 typedef typename __shared_ptr_default_allocator<_Tp>::type _AllocT;
575575 typedef __shared_ptr_pointer<nullptr_t , _Dp, _AllocT> _CntrlBlk;
576576#ifndef _LIBCPP_CXX03_LANG
577577 __cntrl_ = new _CntrlBlk (__p, _VSTD::move (__d), _AllocT ());
578578#else
579579 __cntrl_ = new _CntrlBlk (__p, __d, _AllocT ());
580580#endif // not _LIBCPP_CXX03_LANG
581- #ifndef _LIBCPP_NO_EXCEPTIONS
581+ #ifndef _LIBCPP_HAS_NO_EXCEPTIONS
582582 }
583583 catch (...)
584584 {
585585 __d (__p);
586586 throw ;
587587 }
588- #endif // _LIBCPP_NO_EXCEPTIONS
588+ #endif // _LIBCPP_HAS_NO_EXCEPTIONS
589589 }
590590
591591 template <class _Dp , class _Alloc >
592592 _LIBCPP_HIDE_FROM_ABI
593593 shared_ptr (nullptr_t __p, _Dp __d, _Alloc __a)
594594 : __ptr_ (nullptr )
595595 {
596- #ifndef _LIBCPP_NO_EXCEPTIONS
596+ #ifndef _LIBCPP_HAS_NO_EXCEPTIONS
597597 try
598598 {
599- #endif // _LIBCPP_NO_EXCEPTIONS
599+ #endif // _LIBCPP_HAS_NO_EXCEPTIONS
600600 typedef __shared_ptr_pointer<nullptr_t , _Dp, _Alloc> _CntrlBlk;
601601 typedef typename __allocator_traits_rebind<_Alloc, _CntrlBlk>::type _A2;
602602 typedef __allocator_destructor<_A2> _D2;
@@ -609,14 +609,14 @@ class _LIBCPP_SHARED_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS shared_ptr
609609 _CntrlBlk (__p, __d, __a);
610610#endif // not _LIBCPP_CXX03_LANG
611611 __cntrl_ = _VSTD::addressof (*__hold2.release ());
612- #ifndef _LIBCPP_NO_EXCEPTIONS
612+ #ifndef _LIBCPP_HAS_NO_EXCEPTIONS
613613 }
614614 catch (...)
615615 {
616616 __d (__p);
617617 throw ;
618618 }
619- #endif // _LIBCPP_NO_EXCEPTIONS
619+ #endif // _LIBCPP_HAS_NO_EXCEPTIONS
620620 }
621621
622622 template <class _Yp >
0 commit comments