mirror of
https://github.com/fmtlib/fmt.git
synced 2025-08-01 03:34:45 +02:00
Add missing Allocator template argument for basic_memory_buffer in format_to
Remove deduced default template arguments in format_to and moves the SFINAE check to a non-deduced template parameter.
This commit is contained in:
committed by
Victor Zverovich
parent
00149c0b6a
commit
5c4b0c86fb
@@ -2699,10 +2699,10 @@ inline void vformat_to(
|
|||||||
return detail::vformat_to(buf, to_string_view(format_str), args);
|
return detail::vformat_to(buf, to_string_view(format_str), args);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename S, typename... Args, size_t SIZE = inline_buffer_size,
|
template <typename S, typename... Args, typename Char, size_t SIZE,
|
||||||
typename Char = enable_if_t<detail::is_string<S>::value, char_t<S>>>
|
typename Allocator, FMT_ENABLE_IF(detail::is_string<S>::value)>
|
||||||
inline auto format_to(basic_memory_buffer<Char, SIZE>& buf, const S& format_str,
|
inline auto format_to(basic_memory_buffer<Char, SIZE, Allocator>& buf,
|
||||||
Args&&... args) ->
|
const S& format_str, Args&&... args) ->
|
||||||
typename buffer_context<Char>::iterator {
|
typename buffer_context<Char>::iterator {
|
||||||
const auto& vargs = fmt::make_args_checked<Args...>(format_str, args...);
|
const auto& vargs = fmt::make_args_checked<Args...>(format_str, args...);
|
||||||
detail::vformat_to(buf, to_string_view(format_str), vargs);
|
detail::vformat_to(buf, to_string_view(format_str), vargs);
|
||||||
|
Reference in New Issue
Block a user