[libcxx-commits] [libcxx] [libcxxabi] [libc++] Introduce the notion of a minimum header version (PR #166074)

Nico Weber via libcxx-commits libcxx-commits at lists.llvm.org
Sat Apr 25 16:01:11 PDT 2026


================
@@ -25,4 +27,6 @@ class _LIBCPP_EXPORTED_FROM_ABI bad_any_cast : public bad_cast {
 
 const char* bad_any_cast::what() const noexcept { return "bad any cast"; }
 
+#endif
+
 _LIBCPP_END_NAMESPACE_LFTS
----------------
nico wrote:

Thanks! With that, everything builds fine for us with _LIBCPP_AVAILABILITY_MINIMUM_HEADER_VERSION set to 999.

Is there a better way to say "we don't care about this", or is setting it to some large integer the recommended way?

https://github.com/llvm/llvm-project/pull/166074


More information about the libcxx-commits mailing list