Solved: 51 - Custom Formatter
This commit is contained in:
@@ -3,13 +3,11 @@
|
|||||||
namespace cpp26 {
|
namespace cpp26 {
|
||||||
|
|
||||||
auto format_point(const Point& point) -> std::string {
|
auto format_point(const Point& point) -> std::string {
|
||||||
(void)point;
|
return std::format("{}", point);
|
||||||
return {};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
auto format_points(const Point& a, const Point& b) -> std::string {
|
auto format_points(const Point& a, const Point& b) -> std::string {
|
||||||
(void)a; (void)b;
|
return std::format("{} -> {}", a, b);
|
||||||
return {};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace cpp26
|
} // namespace cpp26
|
||||||
|
|||||||
Reference in New Issue
Block a user