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

ScopedDbConnection : it is an error if I dont call done()???

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

      The RAII C++ idiom relies on the dtor cleaning up resources for me. This is what is implied by "Scoped"

      So why it is that I need to call done() else I get some warning? ScopedDbConnection::~ScopedDbConnection should call done() for me. And If I decide to call done() myself, then ~ScopedDbConnection is a no-op

            Assignee:
            Unassigned Unassigned
            Reporter:
            ldiduck Lance Diduck
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: