Made database ID manipulations safer

This commit is contained in:
emeric
2021-09-20 23:53:38 +02:00
parent 598f01069e
commit 441aed622c
138 changed files with 2164 additions and 2054 deletions
+1 -14
View File
@@ -20,8 +20,8 @@
#include <Wt/Http/Request.h>
#include "database/Types.hpp"
#include "utils/String.hpp"
#include "SubsonicId.hpp"
#include "SubsonicResponse.hpp"
namespace API::Subsonic
@@ -82,18 +82,5 @@ namespace API::Subsonic
return *res;
}
}
namespace StringUtils
{
template<>
std::optional<API::Subsonic::Id>
readAs(std::string_view str);
template<>
std::optional<bool>
readAs(std::string_view str);
}