Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add operator== to TaggedUnion.hpp #280

Merged

Conversation

ttamttam
Copy link
Contributor

Following @liuzicheng1987 advice (#272 (comment)), I had a hard time converting my code in order to have it work in TaggedUnion.hpp.

Note sure at all that it is OK?

Best regards

Following @liuzicheng1987 advice (getml#272 (comment)), I had a hard time converting my code in order to have it work in TaggedUnion.hpp.

Note sure at all that it is OK?
@liuzicheng1987
Copy link
Contributor

Looks good to me...the only thing I could think of is to maybe add a test. (Just put it with the JSON tests.)

@ttamttam
Copy link
Contributor Author

ttamttam commented Nov 26, 2024 via email

@ttamttam
Copy link
Contributor Author

@liuzicheng1987
I just added some test.
Best regards

@liuzicheng1987
Copy link
Contributor

Hi @ttamttam

thanks for adding the tests. Sorry it took me four days to respond, I must habe somehow missed it. The tests look great. I will run them and (if everything goes well) then merge.

@liuzicheng1987
Copy link
Contributor

Hi @ttamttam,

compilation has failed.

I think you need to just rearrange the code a bit: Just put the struct declaration before the declaration of the operator()== and you should be fine.

I promise next time I will be faster to review the changes.

@ttamttam
Copy link
Contributor Author

ttamttam commented Dec 4, 2024 via email

@liuzicheng1987
Copy link
Contributor

@ttamttam , looks great! Thank you for your contribution!

@liuzicheng1987 liuzicheng1987 merged commit 99f3f50 into getml:main Dec 6, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants