-
Notifications
You must be signed in to change notification settings - Fork 121
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
Static type hashing of std::complex #177
Comments
|
I am not sure I understand what overload you are talking about, of
I will try that in user code meanwhile, but I think the structured binding trick on |
I am talking about the overload of
As you mentioned, the data layout of |
Alright, yeah I do not have any overload of
Got it, I can write an overload of I meant it for serialization: even if ones fixes the Edit: as I thought, after overloading the
|
My bad, my workaround with |
Hello,
I came across the need to serializing an
std::array<std::complex<double>, N>
and static type hashing doesn't have the specialization ofstd::complex
, would be awesome to have.std::complex<T>
have strict requirements where it must be equivalent to a C array of twoT
types, so there shouldn't be any fundamental issues.This work as a workaround:
Thanks!
The text was updated successfully, but these errors were encountered: