You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.
That's a really painful bug. Structs have to have computable equality. So if a struct has a function member, then the function's domain has to be of a type that is iterable. So far, so good. The problem is that the equality comparator is a static overload in C++. But the size parameter of type elem is a non-static member of the class, so the equality comparator can't access it to iterate over elem. So there are few bad options:
Make equality comparison a non-static member function
Make the size parameter static
Store the size parameter in the struct
Probably the last is the least disruptive option. It might take a while to get this fixed, though.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello, ivyc generates invalid C++ code on the example below. Should it be working?
The text was updated successfully, but these errors were encountered: