diff include/core/strings.h @ 320:1b5c04268d6a

services/kitsu: ACTUALLY finish GetAnimeList there are some things the API just... doesn't provide. therefore we have to request the genres separately any time a new anime info box is opened...
author Paper <paper@paper.us.eu.org>
date Wed, 12 Jun 2024 19:49:19 -0400
parents f31305b9f60a
children c32467cd06bb
line wrap: on
line diff
--- a/include/core/strings.h	Wed Jun 12 17:52:26 2024 -0400
+++ b/include/core/strings.h	Wed Jun 12 19:49:19 2024 -0400
@@ -17,7 +17,6 @@
  * into a string, separated by delimiters.
  */
 std::string Implode(const std::vector<std::string>& vector, const std::string& delimiter);
-std::string Implode(const std::set<std::string>& set, const std::string& delimiter);
 std::vector<std::string> Split(const std::string& text, const std::string& delimiter);
 
 /* Substring removal functions */
@@ -48,7 +47,7 @@
 QString ToQString(const std::wstring& wstring);
 
 /* not really an "int"... but who cares? */
-template<typename T = int, std::enable_if_t<std::is_integral<T>::value, bool> = true>
+template<typename T = int, std::enable_if_t<std::is_arithmetic<T>::value, bool> = true>
 T ToInt(const std::string& str, T def = 0) {
 	std::istringstream s(str);
 	s >> std::noboolalpha >> def;