Skip to content

Alternative load declaration in shared_ptr_helper - #320

Closed
correaa wants to merge 1 commit into
boostorg:developfrom
correaa:patch-1
Closed

Alternative load declaration in shared_ptr_helper#320
correaa wants to merge 1 commit into
boostorg:developfrom
correaa:patch-1

Conversation

@correaa

@correaa correaa commented Aug 12, 2024

Copy link
Copy Markdown

Attempt to solve #319 , using the technique discussed in the thread

Attempt to solve boostorg#319 , using the technique discussed in the thread
@correaa correaa changed the title Update shared_ptr_helper.hpp Alternative load declaration in shared_ptr_helper Aug 12, 2024
@gennaroprota

Copy link
Copy Markdown
Collaborator

Thank you for the diagnosis. It is correct and is what the fix rests on.

I have not used this form, though, as declaring load for SPT<U> with any single-argument class template becomes ambiguous. I removed the declaration, instead, and the friendship for it.

Closing this in favor of PR #372.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants