Skip to content

Avoid shared_ptr::unique in timer manager - #16

Closed
Tobias-Fischer wants to merge 1 commit into
cellumation:rollingfrom
Tobias-Fischer:codex/robostack-rolling-cm-executors-cpp20
Closed

Tobias-Fischer wants to merge 1 commit into
cellumation:rollingfrom
Tobias-Fischer:codex/robostack-rolling-cm-executors-cpp20

Conversation

@Tobias-Fischer

Copy link
Copy Markdown

This is part of an effort to contribute RoboStack downstream patches back upstream.

Origin: patch/ros-rolling-cm-executors.patch, authored by Daisuke Nishimatsu.

Best-guess rationale: std::shared_ptr::unique() is no longer available in C++20. The existing logic only needs to know whether the timer reference is the sole owner, and use_count() == 1 preserves that behavior with current C++ standards.

This upstreams a generalized form of RoboStack build fix patch/ros-rolling-cm-executors.patch.

Best guess rationale: std::shared_ptr::unique() is no longer available in C++20. The existing logic only needs to know whether the timer reference is the sole owner, and use_count() == 1 preserves that behavior with current C++ standards.

Signed-off-by: Tobias Fischer <[email protected]>
@Tobias-Fischer

Copy link
Copy Markdown
Author

FYI @wep21 and @traversaro: this upstreams a RoboStack downstream patch tracked in RoboStack/robostack#124.

@jmachowinski

Copy link
Copy Markdown
Member

This has been merged upstream and there the fix is already applied. I suggest removing this package from robo stack altogether.

@Tobias-Fischer
Tobias-Fischer deleted the codex/robostack-rolling-cm-executors-cpp20 branch July 19, 2026 19:25
@jmachowinski

Copy link
Copy Markdown
Member

I cleared the repo, to avoid future confusion.

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