Skip to content

Add concept constraint for common_era_clock#69

Open
konard wants to merge 3 commits intomainfrom
issue-57-2d008618
Open

Add concept constraint for common_era_clock#69
konard wants to merge 3 commits intomainfrom
issue-57-2d008618

Conversation

@konard
Copy link
Copy Markdown
Member

@konard konard commented Sep 13, 2025

Summary

  • Add static_assert(std::chrono::is_clock_v<common_era_clock>, ...) after the common_era_clock definition
  • Ensures common_era_clock satisfies the Clock concept requirements at compile time
  • Addresses issue Use concept constraints for common_era_clock #57 by adding the requested concept constraint

Test plan

  • Code compiles successfully with C++20 standard
  • Static assertion verifies Clock concept compliance
  • Existing functionality remains unchanged

🤖 Generated with Claude Code


Resolves #57

Adding CLAUDE.md with task information for AI processing.
This file will be removed when the task is complete.

Issue: #57
@konard konard self-assigned this Sep 13, 2025
Add static_assert to verify common_era_clock satisfies std::chrono::is_clock_v
concept requirements as requested in issue #57.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@konard konard changed the title [WIP] Use concept constraints for common_era_clock Add concept constraint for common_era_clock Sep 13, 2025
@konard konard marked this pull request as ready for review September 13, 2025 06: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.

Use concept constraints for common_era_clock

1 participant