--
You received this message because you are subscribed to the Google Groups "cxx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cxx+uns...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CAH%3DT95QCFoCuT%3D7zfj1hRaytGRUzq7Vwo-2x3S%3Dg1knnMVaJrg%40mail.gmail.com.
In general, my understanding was that we shouldn't be using such a tuple anyway: https://google.github.io/styleguide/cppguide.html#Structs_vs._Tuples"Prefer to use a struct instead of a pair or a tuple whenever the elements can have meaningful names."In my experience, we can almost always make a struct with names that are more meaningful than get<0> or get<2>. In this case, it also solves your issue because such a struct is trivially copyable.
--
If I have a set of objects of different types, each of which is safe to copy across shared memory, what's the best way to put them in the same memory region without having to calculate offsets and alignments for each object manually?
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CAH%3DT95Tj-Y%3Dpg1CH0OLYTBfOpLRWio9yFp41bME-GMWDtSnEow%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CAERSRDBdMX3y6s0MECCXSks5EUaCc%3DzVOM0G9Z_A%2BnVoz8BSbg%40mail.gmail.com.
--
--
You received this message because you are subscribed to the Google Groups "cxx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cxx+uns...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/cxx/17e49e13-ce6c-4a8b-80ab-bf7241f3d019n%40chromium.org.
--
You received this message because you are subscribed to the Google Groups "cxx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cxx+uns...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CAH%3DT95SabL%2By9OF6EBQmhoVO%3DSBdYU2SKMF5Q%2BwE2PmEPiCyuQ%40mail.gmail.com.