#Huge error that i'm unable to decode

16 messages · Page 1 of 1 (latest)

high dragon
woeful ridgeBOT
#

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.

toxic wedge
#
/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)

high dragon
#

i just had to add

void operator()(const NodeVarDeclare* stmt_vardeclare) const
            {
                
            }
#

to the gen_stmt

toxic wedge
#

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 👍

high dragon
#

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