IDL should allow cpp_namespace other than mongo.

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Security
    • Fully Compatible
    • Security 2023-05-29, Security 2023-06-12
    • 152
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Setting cpp_namespace to anything other than `mongo` or a namespace nested within `mongo` causes compilation errors in the generated code:

      build/debug/mongo/db/modules/enterprise/src/streams/exec/connection_gen.h:117:20: error: unknown type name 'BSONObj'; did you mean 'mongo::BSONObj'?
      void setAnchor(BSONObj&& obj) {
      ^~~~~~~
      mongo::BSONObj
      

            Assignee:
            Mark Benvenuto
            Reporter:
            Sandeep Dhoot
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: