Fixed template_builder handling of nested template specializations

This commit is contained in:
Bartek Kryza
2023-04-18 00:13:29 +02:00
parent 758c1418a6
commit 6323ce8a92
11 changed files with 356 additions and 475 deletions

View File

@@ -136,6 +136,15 @@ std::string rtrim(const std::string &s)
return (end == std::string::npos) ? "" : s.substr(0, end + 1);
}
std::string trim_typename(const std::string &s)
{
auto res = trim(s);
if (res.find("typename ") == 0)
return res.substr(strlen("typename "));
return res;
}
std::string trim(const std::string &s) { return rtrim(ltrim(s)); }
std::vector<std::string> split(