-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace boost::shared_ptr with std::shared_ptr (#168)
Boost version 1.63 and newer [supports](boostorg/python#29) `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.
- Loading branch information
Showing
87 changed files
with
494 additions
and
372 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1 @@ | ||
This is the cereal library, as of 11/4/2019. The following patches have been applied: | ||
- All std::shared_ptr and friends replaced by boost::shared_ptr and friends using sed for compatibility with boost::python. | ||
- Instances of nullptr removed when initializing boost::shared_ptr for compatibility with ancient boost versions | ||
|
||
Sed script: | ||
sed -E -I '' -e 's/std::shared_ptr/boost::shared_ptr/g' -e 's/std::static_pointer_cast/boost::static_pointer_cast/g' -e 's/std::dynamic_pointer_cast/boost::dynamic_pointer_cast/g' -e 's/std::make_shared/boost::make_shared/g' | ||
This is the cereal library, version 1.3.2. No patches have been applied. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.