Skip to content

Commit

Permalink
Export printf-related contexts from printf.h
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielaE authored and vitaut committed Apr 24, 2021
1 parent 2c25df0 commit d3c523e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 0 additions & 4 deletions include/fmt/ostream.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,9 @@

FMT_BEGIN_NAMESPACE

FMT_MODULE_EXPORT_BEGIN

template <typename Char> class basic_printf_parse_context;
template <typename OutputIt, typename Char> class basic_printf_context;

FMT_MODULE_EXPORT_END

namespace detail {

template <class Char> class formatbuf : public std::basic_streambuf<Char> {
Expand Down
5 changes: 4 additions & 1 deletion include/fmt/printf.h
Original file line number Diff line number Diff line change
Expand Up @@ -195,13 +195,16 @@ FMT_DEPRECATED void printf(detail::buffer<Char>& buf,
}
using detail::vprintf;

// Exported from ostream.h.
FMT_MODULE_EXPORT_BEGIN

template <typename Char>
class basic_printf_parse_context : public basic_format_parse_context<Char> {
using basic_format_parse_context<Char>::basic_format_parse_context;
};
template <typename OutputIt, typename Char> class basic_printf_context;

FMT_MODULE_EXPORT_END

/**
\rst
The ``printf`` argument formatter.
Expand Down

0 comments on commit d3c523e

Please sign in to comment.