Boost C++ Libraries: Ticket #1822: header dependency in boost/serialization/map.hpp https://svn.boost.org/trac10/ticket/1822 <p> this very simple program here didn't compile with msvc-8.0 and boost 1.35: </p> <pre class="wiki">// bugtest-boost-1.35-mpl.cpp #include &lt;boost/serialization/map.hpp&gt; int main(int argc, char* argv[]) { return 0; } </pre><p> The compiler outputs those error lines: </p> <pre class="wiki">d:\src\libs\boost\include\boost-1_35\boost\serialization\utility.hpp(48) : error C2039: 'and_' : is not a member of 'boost::mpl' d:\src\libs\boost\include\boost-1_35\boost\serialization\utility.hpp(50) : see reference to class template instantiation 'boost::serialization::is_bitwise_serializable&lt;std::pair&lt;_Ty1,_Ty2&gt;&gt;' being compiled d:\src\libs\boost\include\boost-1_35\boost\serialization\utility.hpp(48) : error C2504: 'and_' : base class undefined d:\src\libs\boost\include\boost-1_35\boost\serialization\utility.hpp(48) : error C2143: syntax error : missing ',' before '&lt;' </pre><p> Adding another include line before the existing one makes the compile succeed: </p> <pre class="wiki">#include &lt;boost/mpl/and.hpp&gt; </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1822 Trac 1.4.3 kasparek@… Mon, 14 Apr 2008 09:10:11 GMT <link>https://svn.boost.org/trac10/ticket/1822#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1822#comment:1</guid> <description> <p> Hello, </p> <p> I got the same with gcc (4.1,4.2,4.3): </p> <p> /usr/local/include/boost/serialization/utility.hpp:48: error: expected template-name before '&lt;' token /usr/local/include/boost/serialization/utility.hpp:48: error: expected `{' before '&lt;' token /usr/local/include/boost/serialization/utility.hpp:48: error: expected unqualified-id before '&lt;' token </p> <p> Adding #include &lt;boost/mpl/and.hpp&gt; solved the problem for mee too. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Robert Ramey</dc:creator> <pubDate>Mon, 14 Apr 2008 17:34:33 GMT</pubDate> <title>owner changed https://svn.boost.org/trac10/ticket/1822#comment:2 https://svn.boost.org/trac10/ticket/1822#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Robert Ramey</span> to <span class="trac-author">Matias Capeletto</span> </li> </ul> <p> matias - could you take a look at this please? </p> <p> Robert Ramey </p> Ticket anonymous Mon, 28 Apr 2008 17:11:14 GMT attachment set https://svn.boost.org/trac10/ticket/1822 https://svn.boost.org/trac10/ticket/1822 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">06_all_1.35.0-0002-serialisation-utility-include.patch</span> </li> </ul> <p> Possible fix as posted for Gentoo bug <a class="missing ticket">#215368</a> </p> Ticket Matthias Troyer Sat, 14 Jun 2008 20:44:18 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1822#comment:3 https://svn.boost.org/trac10/ticket/1822#comment:3 <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