aboutsummaryrefslogtreecommitdiff
path: root/include/fmt/xchar.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/fmt/xchar.h')
-rw-r--r--include/fmt/xchar.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/include/fmt/xchar.h b/include/fmt/xchar.h
index 625ec369..f609c5c4 100644
--- a/include/fmt/xchar.h
+++ b/include/fmt/xchar.h
@@ -63,14 +63,15 @@ template <> struct is_char<char16_t> : std::true_type {};
template <> struct is_char<char32_t> : std::true_type {};
template <typename... T>
-constexpr format_arg_store<wformat_context, T...> make_wformat_args(
- const T&... args) {
+constexpr auto make_wformat_args(const T&... args)
+ -> format_arg_store<wformat_context, T...> {
return {args...};
}
inline namespace literals {
#if FMT_USE_USER_DEFINED_LITERALS && !FMT_USE_NONTYPE_TEMPLATE_ARGS
-constexpr detail::udl_arg<wchar_t> operator"" _a(const wchar_t* s, size_t) {
+constexpr auto operator""_a(const wchar_t* s, size_t)
+ -> detail::udl_arg<wchar_t> {
return {s};
}
#endif
@@ -172,11 +173,11 @@ inline auto vformat_to(
return detail::get_iterator(buf, out);
}
-template <
- typename OutputIt, typename Locale, typename S, typename... T,
- typename Char = 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 = 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 {