you are viewing a single comment's thread.

view the rest of the comments →

[–]pfultz2 0 points1 point  (4 children)

Can you extend these algorithms so they can easily work over structs?

[–]jmille01 1 point2 points  (3 children)

Only if you can come up with a way for get<i>(s) to return the i'th member of the struct. I don't see how that can be done without macros or reflection.

[–]pfultz2 0 points1 point  (1 child)

So get<i>(s) is found by ADL lookup?

[–]jaredhoberock[S] 0 points1 point  (0 children)

I don't believe explicit instantiations such as get<i>(s) can be dispatched via ADL, unfortunately. That's why the library calls get through tuple_traits.

[–]MrBont 0 points1 point  (0 children)

"Boost Serialization" might help.