Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dubious fix for issue #313 #334

Closed
wants to merge 1 commit into from
Closed

Dubious fix for issue #313 #334

wants to merge 1 commit into from

Conversation

barche
Copy link
Collaborator

@barche barche commented Nov 15, 2022

No description provided.

@@ -272,7 +272,7 @@ Base.setindex!(x::CxxBaseRef, val, i::Int) = Base.setindex!(x[], val, i)

Base.convert(::Type{RT}, p::SmartPointer{T}) where {T, RT <: CxxBaseRef{T}} = p[]
Base.cconvert(::Type{RT}, p::SmartPointer{T}) where {T, RT <: CxxBaseRef{T}} = p[]
function Base.convert(::Type{T1}, p::SmartPointer) where {T1}
function Base.convert(::Type{T1}, p::SmartPointer{T2}) where {T1, T2 <: T1}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately this still allows for the specialization convert(::Type{Any}, p::SmartPointer) and as such causes heaps of invalidations.

@barche barche closed this in #338 Jan 1, 2023
@barche barche deleted the fix-convert-obs branch January 1, 2023 15:14
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