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

Improve the implementation of __enumerable_thread_local_storage #2049

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

akukanov
Copy link
Contributor

@akukanov akukanov commented Feb 6, 2025

This patch returns to the CRTP-based implementation, with a workaround applied to make the VS 2017 C++ compiler happy.
But more importantly, it addresses two other issues: stores the construction arguments as a tuple of values (by removing references from the deduced types) and replaces unique_ptr with optional to avoid memory allocations.

danhoeflinger and others added 8 commits February 5, 2025 23:13
Signed-off-by: Dan Hoeflinger <[email protected]>
Signed-off-by: Dan Hoeflinger <[email protected]>
Signed-off-by: Dan Hoeflinger <[email protected]>
Signed-off-by: Dan Hoeflinger <[email protected]>
Signed-off-by: Dan Hoeflinger <[email protected]>
Signed-off-by: Dan Hoeflinger <[email protected]>
Copy link
Contributor

@danhoeflinger danhoeflinger left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for catching this problem and fixing it. (And also the workaround for vs2017)

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