summaryrefslogtreecommitdiffstats
path: root/libcxx/src/any.cpp
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2015-07-31 02:24:58 +0000
committerEric Fiselier <eric@efcs.ca>2015-07-31 02:24:58 +0000
commit3461dbc0a7beb7299fcec968bba87a32393e3252 (patch)
tree5f408f34b2629d285c0f32325f40893d60cc65ac /libcxx/src/any.cpp
parent403cbcb84d8b8f459aaa7351472fee8b8df3e391 (diff)
downloadbcm5719-llvm-3461dbc0a7beb7299fcec968bba87a32393e3252.tar.gz
bcm5719-llvm-3461dbc0a7beb7299fcec968bba87a32393e3252.zip
[libcxx] Add <experimental/any> v2.
Summary: This patch adds the second revision of <experimental/any>. I've been working from the LFTS draft found at this link. https://rawgit.com/cplusplus/fundamentals-ts/v1/fundamentals-ts.html#any Reviewers: danalbert, jroelofs, K-ballo, mclow.lists Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D6762 llvm-svn: 243728
Diffstat (limited to 'libcxx/src/any.cpp')
-rw-r--r--libcxx/src/any.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/libcxx/src/any.cpp b/libcxx/src/any.cpp
new file mode 100644
index 00000000000..49683db9685
--- /dev/null
+++ b/libcxx/src/any.cpp
@@ -0,0 +1,22 @@
+//===---------------------------- any.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/any"
+
+_LIBCPP_BEGIN_NAMESPACE_LFTS
+
+bad_any_cast::bad_any_cast() _NOEXCEPT {}
+
+bad_any_cast::~bad_any_cast() _NOEXCEPT {}
+
+const char* bad_any_cast::what() const _NOEXCEPT {
+ return "bad any cast";
+}
+
+_LIBCPP_END_NAMESPACE_LFTS
OpenPOWER on IntegriCloud