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

Add new smart pointers, fix some crashes (multi, chat system) #1139

Merged
merged 4 commits into from
Oct 23, 2023

Conversation

cbnolok
Copy link
Contributor

@cbnolok cbnolok commented Oct 22, 2023

No description provided.

…ions (it will be slowly populated).

- Added new "smart" pointer sl::smart_ptr_view, a customized version of the proposed std::observer_ptr. Use this to make clear that you aren't managing the lifetime of the pointer you are using, since it's owned by a unique_ptr or shared_ptr.
- Added new "smart" sl::raw_ptr_view. Same concept of sl::smart_ptr_view, but it wraps a raw/bare pointer (most often it will be used in conjunction with legacy code, which doesn't use smart pointers).

- Renamed CSSortedVector to sl::sorted_vector.
…ted_)vector.

- Fixed signed/unsigned comparison mismatch in CChar::FollowersUpdate.
…pointer vectors.

Added more useful methods to sl::smart_ptr_view and fixed raw_ptr_view.
@cbnolok cbnolok merged commit 0b845d3 into Sphereserver:master Oct 23, 2023
6 checks passed
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.

1 participant