Subject: [Boost-bugs] [Boost C++ Libraries] #3346: enum_t in scoped_enum_emulation.hpp conflicts with system header <rpc/types.h>
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-08-14 16:17:13
#3346: enum_t in scoped_enum_emulation.hpp conflicts with system header
<rpc/types.h>
----------------------------------+-----------------------------------------
Reporter: troyer | Owner: bemandawes
Type: Bugs | Status: new
Milestone: Boost 1.40.0 | Component: filesystem
Version: Boost Release Branch | Severity: Regression
Keywords: |
----------------------------------+-----------------------------------------
The UNIX system header <rpc/types.h> defines a macro
#define enum_t int
This clashes with the enum_t member in
boost/detail/scoped_enum_emulation.hpp
As a consequence there is a compilation error in Boost.Filesystem if any
of the RPC headers is included before boost/filesystem/operations.hpp
This is a regression that can easily be fixed by renaming enum_t to
enum_type in boost/detail/scoped_enum_emulation.hpp
the test program is trivial:
#include <rpc/types.h>
#include <boost/filesystem/operations.hpp>
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3346> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:01 UTC