c++ - boost serialization of struct derived from struct list -
I'm not sure how I can serial a string that comes from another type of list type. Below is sample code for what I am asking: // nodes. Http #include & lt; Boost / serialization / serialization.hpp & gt; #include & lt; Boost / serialization / access.hpp & gt; #include & lt; Boost / serialization / optional.hpp & gt; #include & lt; Boost / serialization / list.hpp & gt; Struct node {std :: string firstname; Std :: string lastname; Private: Friend class promotion :: Serialization :: Access; Template & lt; Classic Collections & gt; Zero serial (archive and AR, consigned unsigned bunch version) {R & amp; First name; R & A last name; }}; Structure nodes: Public stadium :: List & lt; Node & gt; {Std :: String Address; Std :: string country; Private: Friend class promotion :: Serialization :: Access; Template & lt; Classic Collections & gt; Zero serial (archive and AR, consigned unsigned bunch version) {R & amp; A...