Zhitao Li created MESOS-8856:
--------------------------------
Summary: UNIMPLEMENTED macro in stout could conflict with protobuf
Key: MESOS-8856
URL: https://issues.apache.org/jira/browse/MESOS-8856
Project: Mesos
Issue Type: Bug
Reporter: Zhitao Li
When I tried to use *UNIMPLEMENTED* macro defined in
3rdparty/stout/include/stout/unimplemented.hpp, it conflicted with an
`UNIMPLEMENTED` macro in
{build_dir}/3rdparty/protobuf-3.5.0/src/google/protobuf/stubs/status.h
Although the latter is an enum like this:
{code:cpp}
namespace google {
namespace protobuf {
namespace util {
namespace error {
// These values must match error codes defined in google/rpc/code.proto.
enum Code {
OK = 0,
...
UNIMPLEMENTED = 12,
...
};
} // namespace error
{code}
Preprocessor would transform the enum into incorrect macro.
cc + [~chhsia0]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)