From f2afeabc3c19b7a187f8802f2a92e251b4586030 Mon Sep 17 00:00:00 2001 From: Jon Haslam Date: Mon, 5 Feb 2024 17:25:19 +0000 Subject: [PATCH] Handle stubbed types in NameProvider (#477) --- oi/CodeGen.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/oi/CodeGen.cpp b/oi/CodeGen.cpp index d8696a8..98bedf7 100644 --- a/oi/CodeGen.cpp +++ b/oi/CodeGen.cpp @@ -221,6 +221,13 @@ void genNames(const TypeGraph& typeGraph, std::string& code) { code += R"( template struct NameProvider; +)"; + + code += R"( +template +struct NameProvider> { + static constexpr std::array names = { }; +}; )"; // TODO: stop types being duplicated at this point and remove this check