We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67a8e24 commit c046247Copy full SHA for c046247
1 file changed
include/llvm/ADT/StringRef.h
@@ -573,7 +573,9 @@ namespace llvm {
573
// HLSL Change Starts
574
// StringRef provides an operator string; that trips up the std::pair noexcept specification,
575
// which (a) enables the moves constructor (because conversion is allowed), but (b)
576
-// misclassifies the the construction as nothrow.
+// misclassifies the the construction as nothrow. Newer libc++ releases reject user
577
+// specializations of this trait outright, and also compute the trait correctly without help.
578
+#if !defined(_LIBCPP_VERSION)
579
namespace std {
580
template<>
581
struct is_nothrow_constructible <std::string, llvm::StringRef>
@@ -588,6 +590,7 @@ namespace std {
588
590
: std::false_type {
589
591
};
592
}
593
+#endif
594
// HLSL Change Ends
595
596
#endif
0 commit comments