summaryrefslogtreecommitdiffstats
path: root/contrib/libc++/src/optional.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libc++/src/optional.cpp')
-rw-r--r--contrib/libc++/src/optional.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/contrib/libc++/src/optional.cpp b/contrib/libc++/src/optional.cpp
new file mode 100644
index 0000000..b614d81
--- /dev/null
+++ b/contrib/libc++/src/optional.cpp
@@ -0,0 +1,25 @@
+//===------------------------ optional.cpp --------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+#include "experimental/optional"
+
+namespace std // purposefully not using versioning namespace
+{ namespace experimental {
+
+#ifdef _LIBCPP_HAS_NO_DEFAULTED_FUNCTIONS
+
+bad_optional_access::~bad_optional_access() _NOEXCEPT {}
+
+#else
+
+bad_optional_access::~bad_optional_access() _NOEXCEPT = default;
+
+#endif
+
+}} // std::experimental
OpenPOWER on IntegriCloud