Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-1835

Consider collapsing session overloads and using optionals

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None

      many places I wish would use a std::optional<T> instead are overloaded so there’s x->foo(7) and x->foo(7, obj) when really I’d like x->foo(7, optional)
      This is especially true for crud operations that take a session. fact that it’s an overload rather than taking by optional makes writing generic code that maybe or maybe does not want to use a session very tedious

            Assignee:
            Unassigned Unassigned
            Reporter:
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: