aboutsummaryrefslogtreecommitdiff
path: root/libcxx/include/__format/format_args.h
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/include/__format/format_args.h')
-rw-r--r--libcxx/include/__format/format_args.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/libcxx/include/__format/format_args.h b/libcxx/include/__format/format_args.h
index 8b8fbde92fe6..defb42a4ab00 100644
--- a/libcxx/include/__format/format_args.h
+++ b/libcxx/include/__format/format_args.h
@@ -24,12 +24,12 @@
_LIBCPP_BEGIN_NAMESPACE_STD
-#if _LIBCPP_STD_VER > 17
+#if _LIBCPP_STD_VER >= 20
template <class _Context>
-class _LIBCPP_TEMPLATE_VIS _LIBCPP_AVAILABILITY_FORMAT basic_format_args {
+class _LIBCPP_TEMPLATE_VIS basic_format_args {
public:
- _LIBCPP_HIDE_FROM_ABI basic_format_args() noexcept = default;
+ basic_format_args() noexcept = default;
template <class... _Args>
_LIBCPP_HIDE_FROM_ABI basic_format_args(const __format_arg_store<_Context, _Args...>& __store) noexcept
@@ -71,9 +71,11 @@ private:
const basic_format_arg<_Context>* __args_;
};
};
-_LIBCPP_CTAD_SUPPORTED_FOR_TYPE(basic_format_args);
-#endif //_LIBCPP_STD_VER > 17
+template <class _Context, class... _Args>
+basic_format_args(__format_arg_store<_Context, _Args...>) -> basic_format_args<_Context>;
+
+#endif //_LIBCPP_STD_VER >= 20
_LIBCPP_END_NAMESPACE_STD