Mercurial > minori
diff include/core/strings.h @ 348:6b0768158dcd
text: redesign almost every widget
i.e. Paragraph is now a QLabel, etc etc, some things will probably
break, idc
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Tue, 25 Jun 2024 11:19:54 -0400 |
parents | a0aa8c8c4307 |
children |
line wrap: on
line diff
--- a/include/core/strings.h Sun Jun 23 10:32:09 2024 -0400 +++ b/include/core/strings.h Tue Jun 25 11:19:54 2024 -0400 @@ -53,10 +53,10 @@ return def; } -template<typename T, std::enable_if_t<std::is_integral<T>::value && !std::is_same<T, bool>::value, bool> = true> +template<typename T, std::enable_if_t<std::is_arithmetic<T>::value && !std::is_same<T, bool>::value, bool> = true> std::string ToUtf8String(T i) { std::ostringstream s; - s << i; + s << std::noboolalpha << i; return s.str(); }