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

update to work with boost 1.87 #2720

Merged
merged 4 commits into from
Dec 29, 2024
Merged

update to work with boost 1.87 #2720

merged 4 commits into from
Dec 29, 2024

Conversation

phlptp
Copy link
Member

@phlptp phlptp commented Dec 28, 2024

Summary

If merged this pull request will remove some usages of deprecated boost features which were removed in boost 1.87 now that we only support back to 1.73

@phlptp phlptp added the Installation/build Issues related to the build system or installing HELICS label Dec 28, 2024
@phlptp phlptp requested a review from nightlark December 28, 2024 15:16
const std::string_view result{boost::asio::buffer_cast<const char*>(buffer.data()),
// const std::string_view result{boost::asio::buffer_cast<const char*>(buffer.data()),
// buffer.size()};
const std::string_view result{reinterpret_cast<const char*>(buffer.data().data()),
Copy link
Member

Choose a reason for hiding this comment

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

data() has to be called twice?

Copy link
Member Author

Choose a reason for hiding this comment

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

the first one extracts a mutable buffer, the second one gets the void * pointer to the raw data. The second .data() is the replacement method for the buffer_cast. I looked at that twice too, but that appears to be the way to do it in this case.

@phlptp phlptp merged commit b7c0c19 into develop Dec 29, 2024
16 of 20 checks passed
@phlptp phlptp deleted the boost_1_87_test branch December 29, 2024 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Installation/build Issues related to the build system or installing HELICS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants