-
-
Notifications
You must be signed in to change notification settings - Fork 636
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
Implement ctl::shared_ptr #1229
Closed
Closed
Commits on Jun 18, 2024
-
This code does not segfault and it compiles cleanly, and it took a while to get here.
Configuration menu - View commit details
-
Copy full SHA for b16cf2e - Browse repository at this point
Copy the full SHA b16cf2eView commit details -
Configuration menu - View commit details
-
Copy full SHA for d8ee013 - Browse repository at this point
Copy the full SHA d8ee013View commit details -
Try moving the unique_ptr into shared_pointer
__::shared_pointer::make takes ownership of p the same way as shared_ptr does: either the allocation succeeds and the returned control block owns it, or the allocation throws and the unique_ptr frees it. Note that this construction is safe since C++17, in which the evaluation of constructor arguments is sequenced after a new-expression allocation.
Configuration menu - View commit details
-
Copy full SHA for 8794cdc - Browse repository at this point
Copy the full SHA 8794cdcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b01802 - Browse repository at this point
Copy the full SHA 3b01802View commit details -
Configuration menu - View commit details
-
Copy full SHA for c719ded - Browse repository at this point
Copy the full SHA c719dedView commit details
Commits on Jun 19, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 1fffa42 - Browse repository at this point
Copy the full SHA 1fffa42View commit details
Commits on Jun 20, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 2edff8f - Browse repository at this point
Copy the full SHA 2edff8fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b710a1 - Browse repository at this point
Copy the full SHA 0b710a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for da58178 - Browse repository at this point
Copy the full SHA da58178View commit details -
Configuration menu - View commit details
-
Copy full SHA for 79c0e97 - Browse repository at this point
Copy the full SHA 79c0e97View commit details -
Configuration menu - View commit details
-
Copy full SHA for df00ae1 - Browse repository at this point
Copy the full SHA df00ae1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 507ecaa - Browse repository at this point
Copy the full SHA 507ecaaView commit details
Commits on Aug 1, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a2555ed - Browse repository at this point
Copy the full SHA a2555edView commit details
Commits on Aug 26, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 1758936 - Browse repository at this point
Copy the full SHA 1758936View commit details -
wip modernize/continue implementation
- Adds is_void_v. - Uses enable_if to disable operator* and operator[] for void types. - Uses the new school C++-compatible atomic hack. - There is no implicit conversion from raw pointers to unique_ptr. Test compiles and passes now.
Configuration menu - View commit details
-
Copy full SHA for 9bea795 - Browse repository at this point
Copy the full SHA 9bea795View commit details
Commits on Aug 27, 2024
-
Configuration menu - View commit details
-
Copy full SHA for f717889 - Browse repository at this point
Copy the full SHA f717889View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c88e61 - Browse repository at this point
Copy the full SHA 3c88e61View commit details -
weak_ptr, conform more closely to the STL
Just write out the constructor definitions on cppreference.com. Make the private constructor from a raw rc into a static private method instead of a private constructor. Various other minor fixes.
Configuration menu - View commit details
-
Copy full SHA for b86808c - Browse repository at this point
Copy the full SHA b86808cView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.