Hey, so I just tried building my app and i got this huge error
https://paste.myst.rs/7ggku8a9
I have no clue which part of my code fails.
a powerful website for storing and sharing text and code snippets. completely free and open source.
16 messages · Page 1 of 1 (latest)
Hey, so I just tried building my app and i got this huge error
https://paste.myst.rs/7ggku8a9
I have no clue which part of my code fails.
a powerful website for storing and sharing text and code snippets. completely free and open source.
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
/usr/include/c++/12/type_traits:3034:11: error: no type named ‘type’ in ‘struct std::invoke_result<Generator::gen_stmt(const NodeStmt*)::StmtVisitor&, NodeVarDeclare* const&>’```
it's saying Generator::gen_stmt(const NodeStmt*)::StmtVisitor& is not invocable with an argument of type NodeVarDeclare* const& (aka const NodeVarDeclare*& lvalue reference to pointer to const NodeVarDeclare)
thanks!
i just had to add
void operator()(const NodeVarDeclare* stmt_vardeclare) const
{
}
to the gen_stmt
you get used to the error messages eventually (or maybe the compilers will get better at reporting them eventually)
don't forget to use !solved so mark the question as resolved 👍
yep yep will do
tbh
the /usr/include/c++/12/type_traits:3034:11: error: no type named ‘type’ in ‘struct std::invoke_result<Generator::gen_stmt(const NodeStmt*)::StmtVisitor&, NodeVarDeclare* const&>’
sounds nothing like
^ this
anyway
!solved