Boost C++ Libraries: Ticket #4366: Graph with MPI fails to compile due to mismatch between size of types https://svn.boost.org/trac10/ticket/4366 <p> [BOOST_PATH]/boost/graph/distributed/unsafe_serialize.hpp(40) : error C2182: 'abstract declarator' : illegal use of type 'void' </p> <p> This error occurs during x64 compilation with MSVC 10.0 under Windows 7 x64, where sizeof(int) != sizeof(void*) &amp;&amp; sizeof(long) != sizeof(void*). </p> <p> typedef mpl::if_c&lt;(sizeof(int) == sizeof(void*)), </p> <blockquote> <p> int, mpl::if_c&lt;(sizeof(long) == sizeof(void*)), long, void&gt;::type </p> <blockquote class="citation"> <p> ::type ptr_serialize_type; </p> </blockquote> </blockquote> <p> As Windows uses LLP64 model, which defines a long type as 32bit integer, two cascaded conditions fail. Then ptr_serialize_type is declared as a void type. I think it can be fixed with replacing the last 'void' with 'long long' or using conditional compilation for windows under x64. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4366 Trac 1.4.3 Jeremiah Willcock Tue, 22 Jun 2010 15:03:51 GMT owner changed https://svn.boost.org/trac10/ticket/4366#comment:1 https://svn.boost.org/trac10/ticket/4366#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Andrew Sutton</span> to <span class="trac-author">ngedmond</span> </li> </ul> Ticket Jeremiah Willcock Thu, 02 Sep 2010 20:09:24 GMT <link>https://svn.boost.org/trac10/ticket/4366#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4366#comment:2</guid> <description> <p> Could you please check this in the Boost trunk? It appears to have been fixed there. </p> </description> <category>Ticket</category> </item> <item> <author>webmaster@…</author> <pubDate>Sun, 05 Sep 2010 10:45:40 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4366#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4366#comment:3</guid> <description> <p> I found the problem has been fixed in version 1.44. It was in version 1.43. Thanks. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Jeremiah Willcock</dc:creator> <pubDate>Sun, 05 Sep 2010 13:31:31 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/4366#comment:4 https://svn.boost.org/trac10/ticket/4366#comment:4 <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