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

Change URI option getters to return optional views where possible

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: API
    • None

      There is a TODO comment in uri.hpp to have URI getters return optional views where possible. Returning an optional allows the user to distinguish whether an option was passed or not instead of defaulting. And getters that return a std::string can be a stdx::string_view instead to avoid an unnecessary copy.

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

              Created:
              Updated: