[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);
|
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 {
|
const TypeParamPack &typeParams = {}) noexcept {
|
||||||
String tp;
|
String tp;
|
||||||
if (!typeParams.empty()) {
|
if (!typeParams.empty()) {
|
||||||
@ -42,7 +43,7 @@ static constexpr auto buildTypeId(CRStringView name, int version,
|
|||||||
for (const auto &p : typeParams) {
|
for (const auto &p : typeParams) {
|
||||||
tp += p + ",";
|
tp += p + ",";
|
||||||
}
|
}
|
||||||
tp.resize(tp.len() - 1);
|
tp.resize(tp.len());
|
||||||
tp += "#";
|
tp += "#";
|
||||||
}
|
}
|
||||||
return ox::sfmt("{}{};{}", name, tp, version);
|
return ox::sfmt("{}{};{}", name, tp, version);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user