Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryAWE committed Jun 5, 2024
1 parent a10005e commit c552b32
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 1 addition & 5 deletions include/papilio/core.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4254,11 +4254,7 @@ namespace detail
} // namespace detail

PAPILIO_EXPORT template <typename OutputIt>
struct format_to_n_result
{
OutputIt out;
std::iter_difference_t<OutputIt> size;
};
struct format_to_n_result;

PAPILIO_EXPORT template <typename OutputIt>
OutputIt vformat_to(
Expand Down
3 changes: 3 additions & 0 deletions include/papilio/fmtfwd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ PAPILIO_EXPORT class locale_ref;
PAPILIO_EXPORT template <typename OutputIt, typename CharT = char>
using format_args_ref_for = basic_format_args_ref<
basic_format_context<std::type_identity_t<OutputIt>, CharT>>;

PAPILIO_EXPORT template <typename OutputIt>
struct format_to_n_result;
} // namespace papilio

#include "detail/suffix.hpp"
Expand Down
7 changes: 7 additions & 0 deletions include/papilio/format.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,13 @@ OutputIt format_to(
);
}

PAPILIO_EXPORT template <typename OutputIt>
struct format_to_n_result
{
OutputIt out;
std::iter_difference_t<OutputIt> size;
};

PAPILIO_EXPORT template <typename OutputIt, typename... Args>
format_to_n_result<OutputIt> format_to_n(
OutputIt out,
Expand Down

0 comments on commit c552b32

Please sign in to comment.