Skip to content

Commit

Permalink
util: Fix C++20 compilation issues
Browse files Browse the repository at this point in the history
C++20 introduced std::format_to function so use namespace prefix
  • Loading branch information
shramov committed Jan 22, 2024
1 parent 199ebd9 commit b7b4775
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tll/util/conv-fmt.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ struct fmt::formatter<T, char, typename std::enable_if<_custom<T>::value>::type>

template <typename FormatContext>
auto format(const T &v, FormatContext &ctx) {
return format_to(ctx.out(), "{}", tll::conv::to_string<T>(v));
return fmt::format_to(ctx.out(), "{}", tll::conv::to_string<T>(v));
}
};

Expand Down

0 comments on commit b7b4775

Please sign in to comment.