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

Client and pool initialization should fail if no instance configured

    • Type: Icon: New Feature New Feature
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Implementation
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Programs that use mongocxx functionality without first creating a mongocxx::instance object are ill-formed. We should attempt to detect this scenario, fail fast, and provide readable error messages to users, where possible.

      One approach to address this is to have the mongocxx::client and mongocxx::pool constructors fail if no instance is configured. This will cover many ill-formed programs, but not all.

            Assignee:
            Unassigned Unassigned
            Reporter:
            rassi J Rassi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: