title: boost::serialization: overloading load_construct_data: no accessible constructor at all
body: <p>so I'm using the boost::serialization library, and I'm trying to overide how a class is constructed, since it has no default constructor. This is <a href="http://www.boost.org/doc/libs/1_47_0/libs/serialization/doc/serialization.html#constructors" rel="nofollow">demonstrated here</a>. To me it appears the function takes the <code>class* t</code> and then sets it to point to a newly constructed object. If i'm wrong, this is definately the source of my error.</p>
  
  <p>However, the only way to construct my class is by using another classes <code>create()</code> function, meaning I need to stray from the code in the example (<em>this is stated in the boost::serialization namespace</em>): <code>::new(t)my_class(attribute);</code></p>
  
  <p>I tried simply calling the create function and setting <code>t</code> equal to the returned pointer, but this doesn't seem to work because right after the <code>load_construct_data function</code>, and in the <code>serialization function</code>, the given <code>myClass&amp;</code> is not the same as what I set 't' to.</p>
  
  <p><strong>How do I do whatever ::new(t) is doing so the object created using the create function follows through into the serialize/other functions?</strong></p>