Boost C++ Libraries: Ticket #4665: compilation error in macro BOOST_CLASS_EXPORT_KEY2 and BOOST_CLASS_IS_WRAPPER https://svn.boost.org/trac10/ticket/4665 <p> There is compilation error in next code (VC 7.1) </p> <pre class="wiki">#include &lt;boost/serialization/export.hpp&gt; #include &lt;boost/serialization/wrapper.hpp&gt; struct b {}; template &lt;typename T&gt; struct a {}; BOOST_CLASS_EXPORT_KEY2(b, "b") //OK BOOST_CLASS_EXPORT_KEY2(a&lt;int&gt;, "a&lt;int&gt;") //VC 7.1 error error C2947: expecting '&gt;' to terminate template-argument-list, found '&gt;&gt;' BOOST_CLASS_IS_WRAPPER(b) //OK BOOST_CLASS_IS_WRAPPER(a&lt;int&gt;) //VC 7.1 error error C2947: expecting '&gt;' to terminate template-argument-list, found '&gt;&gt;' </pre><p> The problem is in macro BOOST_CLASS_EXPORT_KEY2 and BOOST_CLASS_IS_WRAPPER. All sequence of character in text of macro "&lt;T&gt;" must be changed to "&lt; T &gt;" </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4665 Trac 1.4.3 Robert Ramey Sat, 25 Sep 2010 17:13:16 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/4665#comment:1 https://svn.boost.org/trac10/ticket/4665#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> <p> I've made this change in my code base for eventual migration to trunk and release. I'm closing this as fixed even though it won't show up in the test matrix for a little while. </p> <p> Robert Ramey </p> Ticket