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

rfe: conwert sym wrappers to smart references #129

Open
stsp opened this issue Mar 3, 2020 · 3 comments
Open

rfe: conwert sym wrappers to smart references #129

stsp opened this issue Mar 3, 2020 · 3 comments

Comments

@stsp
Copy link
Member

stsp commented Mar 3, 2020

c++23 will have smart references.
This will allow us to turn the sym wrappers
into a proxy objects.

@stsp
Copy link
Member Author

stsp commented Nov 5, 2020

Which would mean a gcc compatibility hopefully.
But its quite a big rework.
Whether or not the gcc compatibility worth
the trouble, is an open question. And when
this is going to be implemented in gcc, is difficult
to say.
clang just works...

Related material:
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p0352r1.pdf
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0416r1.pdf

@stsp
Copy link
Member Author

stsp commented Feb 23, 2021

As became obvious from the failed #166
attempt, such wrappers should be
squashed into AsmXXX classes.

@stsp
Copy link
Member Author

stsp commented Jul 14, 2023

#56 (comment)
#56 (comment)

If we can use smart references, perhaps
the inability to modify temporaries will be
circumvented by relaying an access via an
internal pointer to the child object, rather
than the memcpy() to the inherited self.
#56 will use the explicit lifetime management,
so such pointers might be possible.
It however seems that smart references
are not happening in C++23.

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

No branches or pull requests

1 participant