aboutsummaryrefslogtreecommitdiff
path: root/include/cru/common/Format.h
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-02-10 20:40:56 +0800
committercrupest <crupest@outlook.com>2022-02-10 20:40:56 +0800
commit28d7016c32b39656dafa0936cfedb02159f9e7cd (patch)
tree5d21eabd1487d26438eb12c888ffaa51b59bf25d /include/cru/common/Format.h
parentc1dbad5fdf0560983e6c832eddded6f610eae94e (diff)
downloadcru-28d7016c32b39656dafa0936cfedb02159f9e7cd.tar.gz
cru-28d7016c32b39656dafa0936cfedb02159f9e7cd.tar.bz2
cru-28d7016c32b39656dafa0936cfedb02159f9e7cd.zip
...
Diffstat (limited to 'include/cru/common/Format.h')
-rw-r--r--include/cru/common/Format.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/cru/common/Format.h b/include/cru/common/Format.h
index ede2998b..7628f07d 100644
--- a/include/cru/common/Format.h
+++ b/include/cru/common/Format.h
@@ -35,10 +35,7 @@ std::enable_if_t<std::is_floating_point_v<T>, String> ToString(T value) {
}
template <typename T>
-std::enable_if_t<
- std::is_convertible_v<decltype(ToString(std::declval<const T&>)), String>,
- String>
-ToString(const T& value, StringView option) {
+String ToString(const T& value, StringView option) {
CRU_UNUSED(option)
return ToString(value);
}