[PATCH] D22200: [libc++] Fix macOS Sierra build issues by declaring basic_string(const allocator_type& __a) noexcept.

ELI JOSEPH BRADLEY via cfe-commits cfe-commits at lists.llvm.org
Sun Jul 10 09:51:52 PDT 2016


EtherTyper created this revision.
EtherTyper added a subscriber: cfe-commits.
EtherTyper set the repository for this revision to rL LLVM.
EtherTyper changed the edit policy of this Differential Revision from "All Users" to "Administrators".

Repository:
  rL LLVM

http://reviews.llvm.org/D22200

Files:
  include/string

Index: include/string
===================================================================
--- include/string
+++ include/string
@@ -1993,7 +1993,7 @@
 
 template <class _CharT, class _Traits, class _Allocator>
 inline _LIBCPP_INLINE_VISIBILITY
-basic_string<_CharT, _Traits, _Allocator>::basic_string(const allocator_type& __a)
+basic_string<_CharT, _Traits, _Allocator>::basic_string(const allocator_type& __a) noexcept(is_nothrow_copy_constructible<allocator_type>::value)
 #if _LIBCPP_STD_VER <= 14
         _NOEXCEPT_(is_nothrow_copy_constructible<allocator_type>::value)
 #else


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22200.63429.patch
Type: text/x-patch
Size: 583 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160710/d794892a/attachment.bin>


More information about the cfe-commits mailing list