Skip to content

Commit

Permalink
Apply clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
Hans-Martin B. Jensen committed Apr 14, 2024
1 parent 53c5bd7 commit f698a91
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions include/fmt/xchar.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ template <typename OutputIt, typename S, typename... T,
typename Char = detail::format_string_char_t<S>,
FMT_ENABLE_IF(detail::is_output_iterator<OutputIt, Char>::value&&
detail::is_exotic_char<Char>::value)>
inline auto format_to(OutputIt out, const S& format_str, T&&... args) -> OutputIt {
inline auto format_to(OutputIt out, const S& format_str, T&&... args)
-> OutputIt {
return vformat_to(out, fmt::basic_string_view<Char>(format_str),
fmt::make_format_args<buffered_context<Char>>(args...));
}
Expand All @@ -207,11 +208,11 @@ inline auto vformat_to(OutputIt out, const Locale& loc, const S& format_str,
return detail::get_iterator(buf, out);
}

template <typename OutputIt, typename Locale, typename S, typename... T,
typename Char = detail::format_string_char_t<S>,
bool enable = detail::is_output_iterator<OutputIt, Char>::value &&
detail::is_locale<Locale>::value &&
detail::is_exotic_char<Char>::value>
template <
typename OutputIt, typename Locale, typename S, typename... T,
typename Char = detail::format_string_char_t<S>,
bool enable = detail::is_output_iterator<OutputIt, Char>::value&&
detail::is_locale<Locale>::value&& detail::is_exotic_char<Char>::value>
inline auto format_to(OutputIt out, const Locale& loc, const S& format_str,
T&&... args) ->
typename std::enable_if<enable, OutputIt>::type {
Expand Down

0 comments on commit f698a91

Please sign in to comment.