Skip to content

Commit 6c78746

Browse files
committed
Remove non-standard nothrow specializations
1 parent b87d15d commit 6c78746

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

include/llvm/ADT/StringRef.h

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -570,24 +570,4 @@ namespace llvm {
570570
template <> struct isPodLike<StringRef> { static const bool value = true; };
571571
}
572572

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.
577-
namespace std {
578-
template<>
579-
struct is_nothrow_constructible <std::string, llvm::StringRef>
580-
: std::false_type {
581-
};
582-
template<>
583-
struct is_nothrow_constructible <std::string, llvm::StringRef &>
584-
: std::false_type {
585-
};
586-
template<>
587-
struct is_nothrow_constructible <std::string, const llvm::StringRef &>
588-
: std::false_type {
589-
};
590-
}
591-
// HLSL Change Ends
592-
593573
#endif

0 commit comments

Comments
 (0)