diff --git a/include/fmt/ostream.h b/include/fmt/ostream.h index 0a3230fc..d66248a6 100644 --- a/include/fmt/ostream.h +++ b/include/fmt/ostream.h @@ -14,13 +14,9 @@ FMT_BEGIN_NAMESPACE -FMT_MODULE_EXPORT_BEGIN - template class basic_printf_parse_context; template class basic_printf_context; -FMT_MODULE_EXPORT_END - namespace detail { template class formatbuf : public std::basic_streambuf { diff --git a/include/fmt/printf.h b/include/fmt/printf.h index f061aac9..ee6a20c8 100644 --- a/include/fmt/printf.h +++ b/include/fmt/printf.h @@ -195,13 +195,16 @@ FMT_DEPRECATED void printf(detail::buffer& buf, } using detail::vprintf; -// Exported from ostream.h. +FMT_MODULE_EXPORT_BEGIN + template class basic_printf_parse_context : public basic_format_parse_context { using basic_format_parse_context::basic_format_parse_context; }; template class basic_printf_context; +FMT_MODULE_EXPORT_END + /** \rst The ``printf`` argument formatter.