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

refactor: remove annual log map #64

Merged
merged 1 commit into from
Jun 23, 2024

Conversation

NikolaDucak
Copy link
Owner

@NikolaDucak NikolaDucak commented Jun 23, 2024

the map was only used to map dates to a bool, so it's just a plain set. and with the move to c++23, we have acces to std::chrono::month_day.

std::set<std::chrono::month_day> does the job just as good if not better but with less code to maintain.

Besides that, the 'date map' variables and members are renamed to just 'dates' as they are not maping a date to anything, just containing a list of dates.

the map was only used to map dates to a bool, so it's just a plain set.
and with the move to c++23, we have acces to std::chrono::month_day.

std::set<std::chrono::month_day> does the job just as good if not better
but with less code to maintain.

Besides that, the 'date map' variables and members are renamed to just 'dates'
as they are not maping a date to anything, just containing a list of dates.
@NikolaDucak NikolaDucak force-pushed the refactor/remove-annual-log-map branch from a4cb10a to 12244a7 Compare June 23, 2024 10:57
@NikolaDucak NikolaDucak merged commit a6ae873 into master Jun 23, 2024
4 checks passed
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.

None yet

1 participant