aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGravatar Sadie Powell2025-03-22 16:28:22 +0000
committerGravatar Sadie Powell2025-03-22 16:28:22 +0000
commit3344d644733978c3f77f3694bf3dcf9a7dbd3c27 (patch)
tree664cb4d7ae225ae8086ac5f1d2743733482b7381 /include
parentReplace string concatenation with a format string. (diff)
Remove an obsolete ConvToStr overload.
Diffstat (limited to 'include')
-rw-r--r--include/convto.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/include/convto.h b/include/convto.h
index 18daf269c..8ae5cacc6 100644
--- a/include/convto.h
+++ b/include/convto.h
@@ -86,18 +86,6 @@ inline std::string ConvToStr(const Formattable& in)
return FMT::format("{}", in);
}
-/** Converts any type to a string.
- * @param in The value to convert.
- */
-template <class T> requires(!std::integral<T> && !std::floating_point<T> && !fmt_formattable<T>)
-inline std::string ConvToStr(const T& in)
-{
- std::stringstream tmp;
- if (!(tmp << in))
- return std::string();
- return tmp.str();
-}
-
/** Converts a string to a numeric type.
* @param in The string to convert to a numeric type.
* @param def The value to return if the string could not be converted (defaults to 0)