[libcxx-commits] [libcxx] [libc++] Externally instantiate std::vformat_to (PR #71009)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Thu Nov 2 10:07:24 PDT 2023


================
@@ -32,8 +32,12 @@ class _LIBCPP_EXPORTED_FROM_ABI format_error : public runtime_error {
       : runtime_error(__s) {}
   _LIBCPP_HIDE_FROM_ABI format_error(const format_error&) = default;
   _LIBCPP_HIDE_FROM_ABI format_error& operator=(const format_error&) = default;
+#ifdef _LIBCPP_AVAILABILITY_HAS_NO_FORMAT_EXPLICIT_INSTANTIATIONS
----------------
ldionne wrote:

Let's guard the weak-vtable diagnostic above with `_LIBCPP_AVAILABILITY_HAS_NO_FORMAT_EXPLICIT_INSTANTIATIONS`. That way it'll definitely go away when we get rid of the availability macro in the future.

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


More information about the libcxx-commits mailing list