From 856df14d749014f11a583ade2fee988b076754cc Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 14 Oct 2023 22:48:16 +0800 Subject: Re-think about ToString. ToString for a class should lies in the same namespace of the class. Argument-dependent name lookup will help make Format work. The problem is it will hide ToString at parent namespace. But if you call ToString explicitly, it's you duty to use the ToString in correct namespace. --- src/platform/Color.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/platform/Color.cpp') diff --git a/src/platform/Color.cpp b/src/platform/Color.cpp index 81709c6f..a35ef535 100644 --- a/src/platform/Color.cpp +++ b/src/platform/Color.cpp @@ -2,13 +2,9 @@ #include -#include #include #include #include -#include -#include -#include namespace cru::platform { String Color::ToString() const { -- cgit v1.2.3