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

First pass at removing Boost library dependencies #167

Merged
merged 4 commits into from
Oct 18, 2024
Merged

First pass at removing Boost library dependencies #167

merged 4 commits into from
Oct 18, 2024

Conversation

arahlin
Copy link
Member

@arahlin arahlin commented Oct 18, 2024

This PR replaces various Boost utilities with standard library equivalents where possible. The changes here are all the pieces that have straightforward replacements. Remaining uses outside of this PR:

  • boost::math::quaternion: Replaced with a native G3FrameObject implementation in a separate PR (see Native quaternion implementation #166)
  • boost::filesystem: Can be easily replaced with std::filesystem, but requires C++17.
  • boost::iostreams: Intertwined with serialization and python bindings, but the implementation is now entirely contained in core/dataio.cxx/h (see Consolidate IO stream handling in one place #164)
  • boost::python: Yes.

This PR replaces various Boost utilities with standard library equivalents where
possible.  The changes here are all the pieces that have straightforward
replacements.  Remaining uses outside of this PR and #164:

* `G3Units`: replace preprocessor macros in python binding code with something
  better in a separate PR
* `boost::math::quaternions`: Will be replaced with a native G3FrameObject
  implementation in a separate PR
* `boost::filesystem`: Can be easily replaced with `std::filesystem`, but
  requires C++17.
* `boost::iostreams`:  Intertwined with serialization and python bindings
* `boost::python`:  Yes.
@arahlin arahlin self-assigned this Oct 18, 2024
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.

Only some small issues.

cmake/G3Test.h Outdated Show resolved Hide resolved
core/include/core/pybindings.h Show resolved Hide resolved
core/src/dataio.cxx Outdated Show resolved Hide resolved
@arahlin arahlin merged commit 97cbc5b into master Oct 18, 2024
2 checks passed
@arahlin arahlin deleted the deboost branch October 18, 2024 22:46
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.

2 participants