-
Notifications
You must be signed in to change notification settings - Fork 113
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
observer_ptr<T> #70
Comments
Possibly, but I'm not convinced that |
@bernhardmgruber You can propose |
@pdimov The name has been bikesheded to death by WG21 during the years and |
Users have that preference now-a-days, to be able to pull in small independent components without dependencies on other Boost libraries. The other advantage is that the facility will receive a Boost review. It had a WG21 review, but (speaking as a WG21 and C++ Standard committee member) a Boost review is worth it. |
I don't see much to review there. Except the name. That part of the review will be fun. :-) |
Not very encouraging. |
Should be an easy review then. :) |
Actually no, I take that back. There are some parts of the design that I'd change. The pointer constructor should be implicit; there shouldn't be a conversion to a raw pointer; and, arguably, |
My colleague @MFHava and me finally found some time to put together a simple implementation with some documentation. Most of it is taken quite directly from the working draft. I talked to Walter E. Brown during the last WG21 meeting in Cologne and he was fine with letting us try to publish his work as a boost library. The repository is here: https://github.com/MFHava/observer_ptr How would you recommend to proceed now? I guess there will be a lot to polish before we can start an actual boost review, whatever that means. |
There was much disagreement on the future of
std::observer_ptr<T>
during the WG21 Cologne meeting this summer (objection against moving it into the standard, but no consensus for dropping it from the library fundamentals TS3). So maybe Boost is the right place for this handy little utility.What are your thoughts? Would you accept a PR adding
observer_ptr<T>
to Boost.SmartPtr?The text was updated successfully, but these errors were encountered: