26 Jul
2012
26 Jul
'12
6:41 p.m.
Hello. I am trying to serialize a node of a DP composite. This would probably be straightforward if I used raw pointers, but I am using std::unique_ptr. I am not sure it is possible, since I tried to find the word unique_ptr in my /usr/include/boost directory and found almost nothing (except interprocess and chrono which have been installed for other purposes). So, is there is a way to use serialization on unique_ptr, or is there is a reason to avoid doing this? Note: I have made some tries with using boost::serialization on my objects as if they were raw pointers and it have obviously failed, because expected type seems to be only raw pointer and unique_ptr is not compatible with it.