From 8a063df19435af25eadd30734be1b76275cbb56b Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Mon, 19 Nov 2018 15:37:04 +0000 Subject: [libcxx] Add availability markup for bad_optional_access, bad_variant_access and bad_any_cast Reviewers: dexonsmith, EricWF Subscribers: christof, arphaman, libcxx-commits Differential Revision: https://reviews.llvm.org/D53256 llvm-svn: 347219 --- libcxx/test/support/any_helpers.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libcxx/test/support') diff --git a/libcxx/test/support/any_helpers.h b/libcxx/test/support/any_helpers.h index afc85c97ff4..ec8654d1903 100644 --- a/libcxx/test/support/any_helpers.h +++ b/libcxx/test/support/any_helpers.h @@ -68,6 +68,7 @@ template constexpr bool has_value_member(long) { return false; } // Assert that an 'any' object stores the specified 'Type' and 'value'. template std::enable_if_t(0)> +_LIBCPP_AVAILABILITY_THROW_BAD_ANY_CAST assertContains(std::any const& a, int value) { assert(a.has_value()); assert(containsType(a)); @@ -76,6 +77,7 @@ assertContains(std::any const& a, int value) { template std::enable_if_t(0)> +_LIBCPP_AVAILABILITY_THROW_BAD_ANY_CAST assertContains(std::any const& a, Value value) { assert(a.has_value()); assert(containsType(a)); @@ -86,6 +88,7 @@ assertContains(std::any const& a, Value value) { // Modify the value of a "test type" stored within an any to the specified // 'value'. template +_LIBCPP_AVAILABILITY_THROW_BAD_ANY_CAST void modifyValue(std::any& a, int value) { using namespace std; using namespace std::experimental; -- cgit v1.2.3