Skip to content

Difficulty grokking the sink/callback idiom and some other issues. #68

Answered by foonathan
Bobbias asked this question in Q&A
Discussion options

You must be logged in to vote

However, this expression code just resulted in a series of very large template errors, which go back to either "missing value callback overload for production" or "missing value callback overload for production; only have sink".

Yes, you can't use fold_inplace here as you're not having a list. You're only having a list if you use dsl::infix_op_list, so don't need a sink. This means the entire fold_inplace(...) >> stuff is unnecessary, as that just specifies a sink to use.

From a cursory glance, it appears you're missing a callback overload that creates a function call (it will generate an identifier followed by an expression_pointer, that is the "// I don't fully get.." line, which matc…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@foonathan
Comment options

@Bobbias
Comment options

@foonathan
Comment options

@Bobbias
Comment options

@foonathan
Comment options

Answer selected by Bobbias
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants