Skip to content

Conversation

@wdconinc
Copy link
Contributor

Briefly, what does this PR introduce?

This PR removes conditional compilation for C++20 features and implemented default comparison operator. This is unreachable since we now require C++20.

What kind of change does this PR introduce?

  • Bug fix (issue: unreachable code)
  • New feature (issue #__)
  • Documentation update
  • Other: __

Please check if this PR fulfills the following:

  • Tests for the changes have been added
  • Documentation has been added / updated
  • Changes have been communicated to collaborators

Does this PR introduce breaking changes? What changes might users need to make to their code?

No.

Does this PR change default behavior?

No.

Removed conditional compilation for C++20 features and implemented default comparison operator.
Copilot AI review requested due to automatic review settings January 27, 2026 17:45
@wdconinc wdconinc enabled auto-merge (squash) January 27, 2026 17:45
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR removes unreachable C++17 compatibility code from the version header file. Since the project now requires C++20 (as enforced in CMakeLists.txt), the conditional compilation guards around C++20 features are no longer needed.

Changes:

  • Removed #if __cplusplus >= 202002L preprocessor guards
  • Replaced C++17 comparison operator implementations with C++20's defaulted spaceship operator
  • Unconditionally includes the <compare> header

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

wdconinc and others added 2 commits January 27, 2026 18:21
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.

1 participant