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
[Please test] Optimize g_fxo and future typemaps #9714
Conversation
Working on proper dynamic type handling. |
ef1aeb0
to
76f9d63
Compare
|
||
// Obtain object pointer if initialized | ||
template <typename T> | ||
T* try_get() const noexcept |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe can be written after pr but I think get() should return a reference and not a pointer to emphasize the fact that it won't return nullptr on failure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I technically agree but too many spam changes.
Seems to almost work now. |
Fixed more bugs, maybe it's finally mergeable. |
Ah I see, damn it. |
8dc3bf3
to
dc7dbc0
Compare
Yay! Who is ready to suffer insufferable regressions? Just kidding, I think I'll modify get() operator in this PR as well. |
e0f5b6c
to
af80c43
Compare
This allows contiguous allocation (as in an aggregate).
Implement is_init() method. Implement optional Size template arg for further optimization.
Backported some changes from auto_typemap.hpp Implemented methods init(), reset(), clear() Disabled recreation support.
Fix few misused threads and other bugs.
Reduce pointer indirection.