Skip to content

island: Fix get_ptr#613

Open
jschueller wants to merge 2 commits intoesa:masterfrom
jschueller:clang2
Open

island: Fix get_ptr#613
jschueller wants to merge 2 commits intoesa:masterfrom
jschueller:clang2

Conversation

@jschueller
Copy link
Copy Markdown
Contributor

Closes #584

@jschueller
Copy link
Copy Markdown
Contributor Author

hi @bluescarni , any thoughts on this ?

@darioizzo
Copy link
Copy Markdown
Member

This is a good catch and in general we may improve idiomatically this in the future, but current GCC/Clang and runners all pass, that usually means the problematic instantiation path is no longer being hit in practice. @jschueller fix makes sense and is understandable, but

It is semantically noisier and suggests const-correctness is being bypassed for a reason, when it is not.
It can hide real constness bugs if this pattern spreads.
It reduces readability and maintainability without changing behavior for this case.

WIll not merge for now. But lets keep this in mind for the future.

@jschueller
Copy link
Copy Markdown
Contributor Author

can you cherry-pick the doc fix though ?

@darioizzo
Copy link
Copy Markdown
Member

I think its already fixed with the last main CI refresh?

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.

[BUG] island.hpp:226:16: error: cannot initialize return object of type 'void *'

2 participants