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

Copy assignment for database/collection incorrectly degrades to no-op if rhs is default-constructed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.0-rc0
    • Component/s: API
    • Labels:
      None
    • Story Points:
      1
    • Sprint:
      Perl/CXX 2017-04-14

      Description

      database d1 = client["db"];
      database d2;
      d1 = d2;
      REQUIRE(!d1);  // Expected behavior: assertion passes. Observed behavior: assertion fails.
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: