From b42fa13259722e8be50ee3aeb177a66897dd6238 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 10 May 2021 14:15:01 +0100 Subject: Fix the to_string implementation of ConvToStr. I have no idea how I didn't notice this bug when it was originally written. --- include/convto.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/convto.h b/include/convto.h index cb8e1f369..32492efbb 100644 --- a/include/convto.h +++ b/include/convto.h @@ -72,7 +72,7 @@ inline std::string ConvToStr(const bool in) * @param in The value to convert. */ template -inline std::string func(const Stringable& in) +inline std::enable_if_t, std::string> ConvToStr(const Stringable& in) { return std::to_string(in); } @@ -81,7 +81,7 @@ inline std::string func(const Stringable& in) * @param in The value to convert. */ template -inline std::string ConvToStr(const T& in) +inline std::enable_if_t, std::string> ConvToStr(const T& in) { std::stringstream tmp; if (!(tmp << in)) -- cgit v1.3.1-10-gc9f91