From d3c523e0d27923f6a00385426d98325acf12aa3b Mon Sep 17 00:00:00 2001 From: Daniela Engert Date: Sat, 24 Apr 2021 10:40:32 +0200 Subject: [PATCH] Export printf-related contexts from printf.h --- include/fmt/ostream.h | 4 ---- include/fmt/printf.h | 5 ++++- 2 files changed, 4 insertions(+), 5 deletions(-) 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.