A couple of hints: a) constructor is called only when de-serializing a pointer. So unless you're doing this you won't see and constructor call. b) When creating a new object in the course of de-serializing a pointer, the function load_construct_data is callled. This calls an in place new for the default constructor. By specializing this function for your particular class, you can arrange to call a non-default constructor. Robert Ramey Eric wrote:
In debugging a problem, I put breakpoints on the default and copy constructor along with the operator=. When de-serializing the class, none of the breakpoints were hit.
I've searched through the documentation and old posts and can't seem to find any reference to which constructor is called from the serialization class. Could someone enlighten me on this? I'm sure it's covered somewhere, but I've somehow missed it.
Thanks,
Eric
Boost 1.32 under Linux