From 45bcd09bc15739afc3f40eb4b0eeeaa4cc33019b Mon Sep 17 00:00:00 2001 From: studiosi Date: Mon, 24 Aug 2026 19:33:30 +0300 Subject: [PATCH] Solved: 51 - Custom Formatter --- modules/14_cpp26/src/custom_formatter.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/14_cpp26/src/custom_formatter.cpp b/modules/14_cpp26/src/custom_formatter.cpp index 54cbc4f..259d302 100644 --- a/modules/14_cpp26/src/custom_formatter.cpp +++ b/modules/14_cpp26/src/custom_formatter.cpp @@ -3,13 +3,11 @@ namespace cpp26 { auto format_point(const Point& point) -> std::string { - (void)point; - return {}; + return std::format("{}", point); } auto format_points(const Point& a, const Point& b) -> std::string { - (void)a; (void)b; - return {}; + return std::format("{} -> {}", a, b); } } // namespace cpp26