diff options
| author | Eric Fiselier <eric@efcs.ca> | 2016-08-11 03:13:11 +0000 |
|---|---|---|
| committer | Eric Fiselier <eric@efcs.ca> | 2016-08-11 03:13:11 +0000 |
| commit | 324506b9f3a414487f8ba8e128f7aac038412e4f (patch) | |
| tree | cd8522d7bfd47cce6b722d19e669b86a62ef7deb /libcxx/src/any.cpp | |
| parent | 25fb5bda0f4c03ce71e6ddbaf09e12af558b5eda (diff) | |
| download | bcm5719-llvm-324506b9f3a414487f8ba8e128f7aac038412e4f.tar.gz bcm5719-llvm-324506b9f3a414487f8ba8e128f7aac038412e4f.zip | |
[libcxx] Add std::any
Summary:
This patch adds std::any by moving/adapting <experimental/any>.
This patch also implements the std::any parts of p0032r3 (http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0032r3.pdf)
and LWG 2509 (http://cplusplus.github.io/LWG/lwg-defects.html#2509).
I plan to push it in a day or two if there are no comments.
Reviewers: mclow.lists, EricWF
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D22733
llvm-svn: 278310
Diffstat (limited to 'libcxx/src/any.cpp')
| -rw-r--r-- | libcxx/src/any.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libcxx/src/any.cpp b/libcxx/src/any.cpp index f7768457890..45b2337eb35 100644 --- a/libcxx/src/any.cpp +++ b/libcxx/src/any.cpp @@ -7,12 +7,17 @@ // //===----------------------------------------------------------------------===// +#include "any" #include "experimental/any" -_LIBCPP_BEGIN_NAMESPACE_LFTS - +namespace std { const char* bad_any_cast::what() const _NOEXCEPT { return "bad any cast"; } +} +_LIBCPP_BEGIN_NAMESPACE_LFTS +const char* bad_any_cast::what() const _NOEXCEPT { + return "bad any cast"; +} _LIBCPP_END_NAMESPACE_LFTS |

