Should intrusive_ptr copy constructors be declared noexcept?

15 Aug
2014
15 Aug
'14
10:53 p.m.
Currently, intrusive_ptr's copy constructors are not declared noexcept. This disables the std::function small object optimization when intrusive_ptr objects are passed by value in a lambda closure. The attached patch tries to fix this by making the copy constructors conditionally noexcept, based on the noexcept status of the user-provided intrusive_ptr_add_ref function. James
4040
Age (days ago)
4040
Last active (days ago)
0 comments
1 participants
participants (1)
-
James Yonan