[ox/model] Fix type params in buildTypeId
This commit is contained in:
parent
b882a47e58
commit
fbeb08156a
5
deps/ox/src/ox/model/desctypes.hpp
vendored
5
deps/ox/src/ox/model/desctypes.hpp
vendored
@ -34,7 +34,8 @@ constexpr auto buildTypeId() noexcept {
|
||||
return ox::sfmt("{};{}", name, version);
|
||||
}
|
||||
|
||||
static constexpr auto buildTypeId(CRStringView name, int version,
|
||||
static constexpr auto buildTypeId(
|
||||
CRStringView name, int version,
|
||||
const TypeParamPack &typeParams = {}) noexcept {
|
||||
String tp;
|
||||
if (!typeParams.empty()) {
|
||||
@ -42,7 +43,7 @@ static constexpr auto buildTypeId(CRStringView name, int version,
|
||||
for (const auto &p : typeParams) {
|
||||
tp += p + ",";
|
||||
}
|
||||
tp.resize(tp.len() - 1);
|
||||
tp.resize(tp.len());
|
||||
tp += "#";
|
||||
}
|
||||
return ox::sfmt("{}{};{}", name, tp, version);
|
||||
|
Loading…
Reference in New Issue
Block a user