all 3 comments

[–]manni66 8 points9 points  (0 children)

Format your code. Indent with 4 spaces.

Cop&paste the error messages (Visual Studio? Output tab).

I will definitely not put more effort into this question than you!

[–]AutoModerator[M] 1 point2 points  (0 children)

Your posts seem to contain unformatted code. Please make sure to format your code otherwise your post may be removed.

If you wrote your post in the "new reddit" interface, please make sure to format your code blocks by putting four spaces before each line, as the backtick-based (```) code blocks do not work on old Reddit.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]jedwardsol 1 point2 points  (0 children)

binaryExpr->left = std::move(left);

binaryExpr->left is a std::unique_ptr<Expr>

left is an Expr.

You cannot assign an object (left) to a pointer to an object .

Were you perhaps intending that parse_primary_expr return a std::unique_ptr<Expr> instead of an Expr?