diff options
author | crupest <crupest@outlook.com> | 2023-10-14 22:48:16 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2023-10-14 22:48:16 +0800 |
commit | 856df14d749014f11a583ade2fee988b076754cc (patch) | |
tree | 5e0684b2a4c01f37ddc6ad869c2c86125e4bb77a /src/platform/Color.cpp | |
parent | 9ec7c364ce8681305910b728588913f2b11cfbe6 (diff) | |
download | cru-856df14d749014f11a583ade2fee988b076754cc.tar.gz cru-856df14d749014f11a583ade2fee988b076754cc.tar.bz2 cru-856df14d749014f11a583ade2fee988b076754cc.zip |
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.
Diffstat (limited to 'src/platform/Color.cpp')
-rw-r--r-- | src/platform/Color.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
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 <gsl/gsl> -#include <algorithm> #include <cmath> #include <cstdint> #include <optional> -#include <stdexcept> -#include <string> -#include <string_view> namespace cru::platform { String Color::ToString() const { |