diff --git a/include/boost/core/detail/string_view.hpp b/include/boost/core/detail/string_view.hpp index 92f1313..b0c256f 100644 --- a/include/boost/core/detail/string_view.hpp +++ b/include/boost/core/detail/string_view.hpp @@ -34,6 +34,9 @@ #if !defined(BOOST_NO_CXX20_HDR_CONCEPTS) // std::common_reference_with # include #endif +#if !defined(BOOST_NO_CXX20_HDR_FORMAT) +# include // std::formatter +#endif namespace boost { @@ -1261,4 +1264,15 @@ struct std::basic_common_reference< #endif +// std::format support + +#if !defined(BOOST_NO_CXX20_HDR_FORMAT) + +template +struct std::formatter, Ch2>: std::formatter, Ch2> +{ +}; + +#endif + #endif // #ifndef BOOST_CORE_STRING_VIEW_HPP_INCLUDED