Hacker News new | ask | show | jobs
by searealist 679 days ago
That's not C++.
1 comments

Any reader who comment here hopefully has enough knowledge to understand the implied C++.

struct Add {} std::variant<Add, int> Expr;

OR

class Expr {} class Add : Expr {}

I dont think you have ever seriously used c++.