Skip to content

Conversation

@kammce
Copy link
Member

@kammce kammce commented Jan 17, 2026

Replace std::pair<int*, int*> with counter_pair struct that has named fields (constructed, destructed) and operator<< for readable test output. Remove get_counter helpers and simplify lambda captures to [&].

Replace std::pair<int*, int*> with counter_pair struct that has named
fields (constructed, destructed) and operator<< for readable test
output. Remove get_counter helpers and simplify lambda captures to [&].
@kammce kammce changed the title ✅ Refactor raii_counter to use counter_pair for bett… ✅ Refactor raii_counter to use counter_pair Jan 17, 2026
@kammce kammce merged commit 0b1838d into main Jan 17, 2026
5 checks passed
@kammce kammce deleted the raii_counter branch January 17, 2026 15:06
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