Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-8856

UNIMPLEMENTED macro in stout could conflict with protobuf

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • stout
    • None

    Description

      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:

      
      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
      

      Preprocessor would transform the enum into incorrect macro.

      cc + chhsia0

      Attachments

        Activity

          People

            Unassigned Unassigned
            zhitao Zhitao Li
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: