mirror of
https://github.com/JakeHillion/object-introspection.git
synced 2024-11-09 13:14:55 +00:00
Handle stubbed types in NameProvider (#477)
This commit is contained in:
parent
ecc01f5742
commit
f2afeabc3c
@ -221,6 +221,13 @@ void genNames(const TypeGraph& typeGraph, std::string& code) {
|
||||
code += R"(
|
||||
template <typename T>
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user