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

Change URI option getters to return optional views where possible

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • API
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: