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

UNIMPLEMENTED macro in stout could conflict with protobuf

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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 + Chun-Hung Hsiao

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            zhitao Zhitao Li

            Dates

              Created:
              Updated:

              Slack

                Issue deployment