From 3344d644733978c3f77f3694bf3dcf9a7dbd3c27 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 22 Mar 2025 16:28:22 +0000 Subject: Remove an obsolete ConvToStr overload. --- include/convto.h | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'include') 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 requires(!std::integral && !std::floating_point && !fmt_formattable) -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) -- cgit v1.3.1-10-gc9f91