summaryrefslogtreecommitdiff
path: root/external/bsd/libc++/dist/libcxx/src/optional.cpp
diff options
context:
space:
mode:
authorjoerg <joerg@NetBSD.org>2013-11-11 23:42:23 +0000
committerjoerg <joerg@NetBSD.org>2013-11-11 23:42:23 +0000
commit7b508f5cf1cffaba9056e779bab2a09bf6767655 (patch)
tree1ded8b22c412394ce3b7605b7da7e7d752c5b1e4 /external/bsd/libc++/dist/libcxx/src/optional.cpp
parentf4c7577e0d6de880acbb5d05bffab23df87c32d5 (diff)
Import libc++ r194207. This brings in various bug fixes, a good chunk of
support for the up-coming C++14 and improved compatibility with various compilers other than Clang.
Diffstat (limited to 'external/bsd/libc++/dist/libcxx/src/optional.cpp')
-rw-r--r--external/bsd/libc++/dist/libcxx/src/optional.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/external/bsd/libc++/dist/libcxx/src/optional.cpp b/external/bsd/libc++/dist/libcxx/src/optional.cpp
new file mode 100644
index 00000000000..fde071c9a13
--- /dev/null
+++ b/external/bsd/libc++/dist/libcxx/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 "optional"
+
+namespace std // purposefully not using versioning namespace
+{
+
+#ifdef _LIBCPP_HAS_NO_DEFAULTED_FUNCTIONS
+
+bad_optional_access::~bad_optional_access() _NOEXCEPT {}
+
+#else
+
+bad_optional_access::~bad_optional_access() _NOEXCEPT = default;
+
+#endif
+
+} // std