-
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`.