Stop "using mongo" directive in streams files

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Atlas Streams
    • None
    • None
    • None
    • None
    • None
    • None
    • None

       

      https://abseil.io/tips/153
      https://quuxplusone.github.io/blog/2020/12/21/using-directive/#using-directives
      https://google.github.io/styleguide/cppguide.html#Namespaces

      As it is right now, this directive make it possible for streams:: names to hide mongo:: names.

      Or for mongo:: names to clash with global namespace names!

      That means that maintainers of mongo:: headers will break your code in the future by defining names that conflict with names in the global namespace.

            Assignee:
            Unassigned
            Reporter:
            Andrew Chen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: