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

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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • All

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: