View | Details | Raw Unified | Return to bug 230464
Collapse All | Expand All

(-)www/webkit2-gtk3/files/patch-Source_WTF_wtf_Optional.h (+17 lines)
Line 0 Link Here
1
--- Source/WTF/wtf/Optional.h.orig	2018-02-19 07:45:30 UTC
2
+++ Source/WTF/wtf/Optional.h
3
@@ -291,12 +291,14 @@ struct nullopt_t
4
 constexpr nullopt_t nullopt{nullopt_t::init()};
5
 
6
 
7
+# if !defined(_LIBCPP_VERSION) || _LIBCPP_VERSION < 7000
8
 // 20.5.8, class bad_optional_access
9
 class bad_optional_access : public std::logic_error {
10
 public:
11
   explicit bad_optional_access(const std::string& what_arg) : std::logic_error{what_arg} {}
12
   explicit bad_optional_access(const char* what_arg) : std::logic_error{what_arg} {}
13
 };
14
+# endif // _LIBCPP_VERSION < 7000
15
 
16
 
17
 template <class T>

Return to bug 230464