Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-79786

unnamed namespace in command.h

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Service Arch 2023-08-21

      Anonymous namespaces are forbidden in headers, as they cause violations of the one-definition rule.

      One was added to command.h (SERVER-52542) a while back.
      https://mongodbcr.appspot.com/737630008/patch/762060001/754440009

      We should take that out and/or replace it with something like a command_details namespace.

      I can roll this into other work on the Command.h header for the "shard+router" project.

            Assignee:
            billy.donahue@mongodb.com Billy Donahue
            Reporter:
            billy.donahue@mongodb.com Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: