Handle stubbed types in NameProvider (#477)

This commit is contained in:
Jon Haslam 2024-02-05 17:25:19 +00:00 committed by GitHub
parent ecc01f5742
commit f2afeabc3c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -221,6 +221,13 @@ void genNames(const TypeGraph& typeGraph, std::string& code) {
code += R"( code += R"(
template <typename T> template <typename T>
struct NameProvider; struct NameProvider;
)";
code += R"(
template <unsigned int N, unsigned int align, int32_t Id>
struct NameProvider<DummySizedOperator<N, align, Id>> {
static constexpr std::array<std::string_view, 0> names = { };
};
)"; )";
// TODO: stop types being duplicated at this point and remove this check // TODO: stop types being duplicated at this point and remove this check