Skip to content

Commit 14e4da8

Browse files
committed
Updated documentation of limitations
1 parent 0b144e9 commit 14e4da8

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

include/oup/observable_unique_ptr.hpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,6 @@ struct control_block {
3939
* less thread-safety compared to std::shared_ptr.
4040
* - observable_unique_ptr does not support arrays.
4141
* - observable_unique_ptr does not allow custom allocators.
42-
* - observable_unique_ptr does not have a release() function to let go of
43-
* the ownership.
44-
* - observable_unique_ptr allows moving from other observable_unique_ptr
45-
* only if the deleter type is exactly the same, while std::unique_ptr
46-
* allows moving from a convertible deleter.
47-
* - observable_unique_ptr may not own a deleter instance; if in doubt, check
48-
* has_deleter() before calling get_deleter(), or use try_get_deleter().
49-
* - a moved-from observable_unique_ptr will not own a deleter instance.
5042
*/
5143
template<typename T, typename Deleter = std::default_delete<T>>
5244
class observable_unique_ptr {

0 commit comments

Comments
 (0)