summaryrefslogtreecommitdiffstats
path: root/src/optional.cpp
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2014-01-29 19:30:27 +0000
committerdim <dim@FreeBSD.org>2014-01-29 19:30:27 +0000
commitc3e10da3dc0f616b78ccf85206fdcf4c92f8ac85 (patch)
tree5812a629bd48b0968dee7411809c6a6a19680390 /src/optional.cpp
parent30a0ccc9e6a2233c7d9f03028880be3e205fd7d1 (diff)
downloadFreeBSD-src-c3e10da3dc0f616b78ccf85206fdcf4c92f8ac85.zip
FreeBSD-src-c3e10da3dc0f616b78ccf85206fdcf4c92f8ac85.tar.gz
Vendor import of libc++ tags/RELEASE_34/final r197960:
https://llvm.org/svn/llvm-project/libcxx/tags/RELEASE_34/final@197960
Diffstat (limited to 'src/optional.cpp')
-rw-r--r--src/optional.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/optional.cpp b/src/optional.cpp
new file mode 100644
index 0000000..b614d81
--- /dev/null
+++ b/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