Boost C++ Libraries: Ticket #1662: boost::serialization for boost::optional - missing include https://svn.boost.org/trac10/ticket/1662 <p> Hi, if I try to srialize an boost::optional object ( with &lt;boost/serialization/optional.hpp&gt; included) I get: /opt/boost/include/boost-1_35/boost/serialization/optional.hpp: In function 'void boost::serialization::save(Archive&amp;, const boost::optional&lt;T&gt;&amp;, unsigned int)': /opt/boost/include/boost-1_35/boost/serialization/optional.hpp:42: error: 'version' was not declared in this scope /opt/boost/include/boost-1_35/boost/serialization/optional.hpp:42: error: expected primary-expression before '&gt;' token /opt/boost/include/boost-1_35/boost/serialization/optional.hpp:42: error: '::value' has not been declared </p> <p> In file &lt;boost/serialization/optional.hpp&gt; the include of &lt;boost/serialization/version.hpp&gt; is missing. </p> <p> so long, Oliver </p> <p> #include &lt;boost/serialization/version.hpp&gt; </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1662 Trac 1.4.3 Marshall Clow Fri, 29 Feb 2008 17:43:50 GMT component changed; owner set https://svn.boost.org/trac10/ticket/1662#comment:1 https://svn.boost.org/trac10/ticket/1662#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Robert Ramey</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">serialization</span> </li> </ul> Ticket Robert Ramey Tue, 25 Mar 2008 19:23:52 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1662#comment:2 https://svn.boost.org/trac10/ticket/1662#comment:2 <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> <p> fixed in trunk </p> Ticket