title: static members and boost serialization
body: <p>I'm using <a href="http://www.boost.org/doc/libs/1_38_0/libs/serialization/doc/index.html" rel="noreferrer">Boost.Serialization</a> to archive the contents of a class. One of the member variables is a static std::vector.</p>
  
  <p>Archiving and restoring goes fine, but I was kind of hoping the library would save static members only once, it appears that, judging by the filesize, the static members are fully saved for each archived instance.</p>
  
  <p>This is rather easily circumvented by using set/getters for the static vector and serializing the static vector outside the class once.</p>
  
  <p>But I'd rather have a self contained class. Is there a clean and easy way to achieve archiving the static contents of a class only once?</p>