Boost C++ Libraries: Ticket #1142: boost/serialization/optional doesn't include necessary header https://svn.boost.org/trac10/ticket/1142 <p> The following function refers to version&lt;T&gt;::value without an include of boost/serialization/version.hpp, resulting in user code that won't compile. It is possible to work around this problem by including boost/serialization/version.hpp before including boost/serialization/optional.hpp. I did not require a work-around with boost 1.32.0, but both 1.34.0 and 1.34.1 appear to need the work-around. </p> <pre class="wiki">template&lt;class Archive, class T&gt; void save( Archive &amp; ar, const boost::optional&lt;T&gt; &amp; t, const unsigned int /*version*/ ) </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1142 Trac 1.4.3 Robert Ramey Fri, 30 Nov 2007 05:09:52 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1142#comment:1 https://svn.boost.org/trac10/ticket/1142#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket