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

fix: Remove vendored boost file to compile with boost 1.87. #471

Merged
merged 5 commits into from
Dec 20, 2024

Conversation

kinyoklion
Copy link
Member

@kinyoklion kinyoklion commented Dec 19, 2024

BEGIN_COMMIT_OVERRIDE
fix: Remove vendored boost file to compile with boost 1.87.
fix: Update usage of the steady_timer to be compatible with boost 1.87.
fix: Remove type alias import for JSON system_error that was removed in boost 1.87.
END_COMMIT_OVERRIDE

@kinyoklion kinyoklion force-pushed the rlamb/remove-vendored-allocate_unique branch from 0b1cefa to 63a5c92 Compare December 19, 2024 22:58
fix: Replace expires_from_now with expires_after.
@kinyoklion kinyoklion force-pushed the rlamb/remove-vendored-allocate_unique branch from 63a5c92 to 42cc871 Compare December 19, 2024 23:33
@@ -37,13 +37,13 @@ void EventOutbox::do_shutdown(beast::error_code ec) {
void EventOutbox::post_event(launchdarkly::sse::Event event) {
auto http_request = build_request(callback_counter_++, std::move(event));
outbox_.push(http_request);
flush_timer_.expires_from_now(boost::posix_time::milliseconds(0));
Copy link
Member Author

Choose a reason for hiding this comment

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

API has been deprecated. The new API already exists in the oldest boost we support.

@@ -1,5 +1,3 @@
#include <boost/json/system_error.hpp>
Copy link
Member Author

Choose a reason for hiding this comment

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

This import was not used, and has been removed.

Copy link
Member Author

Choose a reason for hiding this comment

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

Appears to have been added to boost in 1.72, and the library at the time seems to have built with 1.71. So likely this was to allow working with boost 1.71 and still using this feature.

@kinyoklion kinyoklion marked this pull request as ready for review December 20, 2024 18:33
@kinyoklion kinyoklion requested a review from a team as a code owner December 20, 2024 18:33
@kinyoklion kinyoklion merged commit c0ef518 into main Dec 20, 2024
25 checks passed
@kinyoklion kinyoklion deleted the rlamb/remove-vendored-allocate_unique branch December 20, 2024 18:43
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