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