Solved: 51 - Custom Formatter
This commit is contained in:
1 parent
986be65d61
commit
45bcd09bc1
1 file changed
+2
-4
@@ -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
|
||||
Reference in new issue
Block a user