Look into disabling self-move assignment assertion in g++

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Development Platform
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently when we do a self-move assignment or a self-swap with std::swap, our code will fail in debug mode.
      For example: https://jira.mongodb.org/browse/BF-26598

      There is a detailed discussion about this assertion on StackOverflow: https://stackoverflow.com/questions/22915325/avoiding-self-assignment-in-stdshuffle

      We should research a possibility to disable it with `__glibcxx_check_self_move_assign`.

            Assignee:
            [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
            Reporter:
            Ivan Fefer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: