Boost C++ Libraries: Ticket #3346: enum_t in scoped_enum_emulation.hpp conflicts with system header <rpc/types.h> https://svn.boost.org/trac10/ticket/3346 <p> The UNIX system header &lt;rpc/types.h&gt; defines a macro </p> <p> #define enum_t int </p> <p> This clashes with the enum_t member in boost/detail/scoped_enum_emulation.hpp </p> <p> As a consequence there is a compilation error in Boost.Filesystem if any of the RPC headers is included before boost/filesystem/operations.hpp </p> <p> This is a regression that can easily be fixed by renaming enum_t to enum_type in boost/detail/scoped_enum_emulation.hpp </p> <p> the test program is trivial: </p> <p> #include &lt;rpc/types.h&gt; #include &lt;boost/filesystem/operations.hpp&gt; </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3346 Trac 1.4.3 Beman Dawes Sat, 15 Aug 2009 14:20:30 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3346#comment:1 https://svn.boost.org/trac10/ticket/3346#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> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/55604" title="Fix #3346 boost/detail/scoped_enum_emulation.hpp enum_t conflict with ...">[55604]</a>) Fix <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3346" title="#3346: Bugs: enum_t in scoped_enum_emulation.hpp conflicts with system header ... (closed: fixed)">#3346</a> boost/detail/scoped_enum_emulation.hpp enum_t conflict with Unix rpc/types.h </p> Ticket Daniel James Sun, 14 Feb 2010 16:31:23 GMT <link>https://svn.boost.org/trac10/ticket/3346#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3346#comment:2</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/59679" title="Merge some detail changes. - [53670] Avoid C style casts. - [55604] ...">[59679]</a>) Merge some detail changes. </p> <ul><li><a class="changeset" href="https://svn.boost.org/trac10/changeset/53670" title="avoid C style casts">[53670]</a> Avoid C style casts. </li><li><a class="changeset" href="https://svn.boost.org/trac10/changeset/55604" title="Fix #3346 boost/detail/scoped_enum_emulation.hpp enum_t conflict with ...">[55604]</a> Fix <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3346" title="#3346: Bugs: enum_t in scoped_enum_emulation.hpp conflicts with system header ... (closed: fixed)">#3346</a> boost/detail/scoped_enum_emulation.hpp enum_t conflict with Unix rpc/types.h </li><li>Don't foward declare containers when using gcc's parallel library and add a macro to disable forward declaration. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3866" title="#3866: Bugs: detail/container_fwd.hpp lacks support for the parallel mode of GCC's STL (closed: fixed)">#3866</a>. </li></ul> </description> <category>Ticket</category> </item> </channel> </rss>