diff options
Diffstat (limited to 'absl/types/bad_any_cast.h')
-rw-r--r-- | absl/types/bad_any_cast.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/absl/types/bad_any_cast.h b/absl/types/bad_any_cast.h index 3f89e75d..7df9afbb 100644 --- a/absl/types/bad_any_cast.h +++ b/absl/types/bad_any_cast.h @@ -23,8 +23,22 @@ #include <typeinfo> +#include "absl/base/config.h" + +#ifdef ABSL_HAVE_STD_ANY + +#include <any> + +namespace absl { +inline namespace lts_2018_12_18 { +using std::bad_any_cast; +} // inline namespace lts_2018_12_18 +} // namespace absl + +#else // ABSL_HAVE_STD_ANY + namespace absl { -inline namespace lts_2018_06_20 { +inline namespace lts_2018_12_18 { // ----------------------------------------------------------------------------- // bad_any_cast @@ -53,7 +67,9 @@ namespace any_internal { [[noreturn]] void ThrowBadAnyCast(); } // namespace any_internal -} // inline namespace lts_2018_06_20 +} // inline namespace lts_2018_12_18 } // namespace absl +#endif // ABSL_HAVE_STD_ANY + #endif // ABSL_TYPES_BAD_ANY_CAST_H_ |