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

Replace boost::shared_ptr with std::shared_ptr #168

Merged
merged 8 commits into from
Nov 20, 2024
Merged

Conversation

arahlin
Copy link
Member

@arahlin arahlin commented Nov 18, 2024

Boost version 1.63 and newer supports std::shared_ptr python converters. Thus, in this PR, all boost shared pointers are replaced with standard library shared pointers everywhere in the library. The required C++ standard is also increased to C++17, since shared pointers for allocated C arrays do not work with the older standards.

In the process, this PR also updates the cereal library to the latest version (1.3.2) without any patching.

@arahlin arahlin self-assigned this Nov 18, 2024
Copy link
Member

@nwhitehorn nwhitehorn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this long-overdue set of changes! I think this is ready to merge. It is probably worth noting in the commit message when you do that you have updated cereal as well.

Copy link
Contributor

@cnweaver cnweaver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see no issues.

@tskisner
Copy link
Member

Thanks for this work! I confirm that (with a couple small modifications), the downstream so3g package builds against this branch. Looks good to me.

Copy link
Member

@tskisner tskisner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@arahlin arahlin merged commit 88abb76 into master Nov 20, 2024
12 of 18 checks passed
@arahlin arahlin deleted the std_shared_ptr branch November 20, 2024 16:07
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.

4 participants