Fix C++03 build

llvm-svn: 288555
This commit is contained in:
Eric Fiselier 2016-12-02 23:41:18 +00:00
parent 918f32fc7b
commit 5877920183
2 changed files with 2 additions and 2 deletions

View File

@ -3352,7 +3352,7 @@ inline size_t __hash_combine(size_t __lhs, size_t __rhs) _NOEXCEPT {
size_t second; size_t second;
}; };
typedef __scalar_hash<_PairT> _HashT; typedef __scalar_hash<_PairT> _HashT;
const _PairT __p{__lhs, __rhs}; const _PairT __p = {__lhs, __rhs};
return _HashT()(__p); return _HashT()(__p);
} }

View File

@ -216,7 +216,7 @@ namespace std { // explicitly not using versioning namespace
class _LIBCPP_EXCEPTION_ABI bad_variant_access : public exception { class _LIBCPP_EXCEPTION_ABI bad_variant_access : public exception {
public: public:
_LIBCPP_FUNC_VIS virtual const char* what() const noexcept; _LIBCPP_FUNC_VIS virtual const char* what() const _NOEXCEPT;
}; };
} // namespace std } // namespace std