Adding support for NULL pointers for several shared pointer methods#158
Adding support for NULL pointers for several shared pointer methods#158P-p-H-d wants to merge 11 commits into
Conversation
|
Question: about the I/O methods. Support could be added but it has to handle it in a way that doesn't interfere with the printing of the internal object, which may be hard. |
|
That support is not important (to me). Documenting preconditions and behaviors with null pointers on the main interfaces is the important thing to me. Allowing null pointer items in container "shared ptr within array/deque/stack/buffer" is helpful to have. |
580a9f4 to
b49716f
Compare
|
ThreadSanitizer has detected a lock-order-inversion (potential deadlock) when using _apply or _for_each if the used callback performs some mutex lock (directly or indirectly by calling another shared ptr function). It cannot be fixed easily. Probably we need to :
EDIT: Currently we will only specify the problem and the restriction. If needed by some uses, we can implement a new set of functions later. |
697c61c to
2382c06
Compare
No description provided.