added "String<>::numberOf(float/double)=default"

This commit is contained in:
2023-09-21 23:37:36 +08:00
parent 072153aa91
commit 416e96c169

View File

@@ -125,6 +125,9 @@ namespace hgl
return String<T>(si); \ return String<T>(si); \
} }
static String<T> numberOf(const float value)=delete;
static String<T> numberOf(const double value)=delete;
BASE_STRING_NUMBER_CONSTRUCT(int, itos); BASE_STRING_NUMBER_CONSTRUCT(int, itos);
BASE_STRING_NUMBER_CONSTRUCT(uint, utos); BASE_STRING_NUMBER_CONSTRUCT(uint, utos);
BASE_STRING_NUMBER_CONSTRUCT(int64, itos); BASE_STRING_NUMBER_CONSTRUCT(int64, itos);