Export printf-related contexts from printf.h

This commit is contained in:
Daniela Engert 2021-04-24 10:40:32 +02:00 committed by Victor Zverovich
parent 2c25df089f
commit d3c523e0d2
2 changed files with 4 additions and 5 deletions

View File

@ -14,13 +14,9 @@
FMT_BEGIN_NAMESPACE FMT_BEGIN_NAMESPACE
FMT_MODULE_EXPORT_BEGIN
template <typename Char> class basic_printf_parse_context; template <typename Char> class basic_printf_parse_context;
template <typename OutputIt, typename Char> class basic_printf_context; template <typename OutputIt, typename Char> class basic_printf_context;
FMT_MODULE_EXPORT_END
namespace detail { namespace detail {
template <class Char> class formatbuf : public std::basic_streambuf<Char> { template <class Char> class formatbuf : public std::basic_streambuf<Char> {

View File

@ -195,13 +195,16 @@ FMT_DEPRECATED void printf(detail::buffer<Char>& buf,
} }
using detail::vprintf; using detail::vprintf;
// Exported from ostream.h. FMT_MODULE_EXPORT_BEGIN
template <typename Char> template <typename Char>
class basic_printf_parse_context : public basic_format_parse_context<Char> { class basic_printf_parse_context : public basic_format_parse_context<Char> {
using basic_format_parse_context<Char>::basic_format_parse_context; using basic_format_parse_context<Char>::basic_format_parse_context;
}; };
template <typename OutputIt, typename Char> class basic_printf_context; template <typename OutputIt, typename Char> class basic_printf_context;
FMT_MODULE_EXPORT_END
/** /**
\rst \rst
The ``printf`` argument formatter. The ``printf`` argument formatter.