Skip to content

Conversation

@Katze719
Copy link
Owner

No description provided.

- Changed IndentPPDirectives setting in .clang-format to 'AfterHash'.
- Enhanced header inclusion logic in expected.hpp to check for <version> or <experimental/version> before including <expected>.
- Cleaned up conditional compilation directives for better readability and maintainability.
@Katze719 Katze719 requested a review from Copilot November 12, 2025 16:54
@Katze719 Katze719 linked an issue Nov 12, 2025 that may be closed by this pull request
@Katze719 Katze719 force-pushed the 36-missing-include-versionh branch from 13af793 to 7646019 Compare November 12, 2025 16:56
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 improves header detection for <expected> by checking for the <version> header presence before including it, updates .clang-format for clearer preprocessor indentation, and refactors the expected.hpp implementation.

  • Added <version> header detection using __has_include to ensure feature test macros are available
  • Reordered conditional compilation to check __cpp_lib_expected before C++ version macros
  • Removed empty user-defined constructors/destructors from union types and reordered class members

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
include/threadschedule/expected.hpp Adds <version> header detection, improves feature test macro checking order, applies consistent preprocessor indentation, removes empty union constructors, and reorders class members
CHANGELOG.md Documents the changes for v1.2.3 release including build/style updates, header detection improvements, and refactoring
.clang-format Updates IndentPPDirectives from None to AfterHash for clearer preprocessor nesting

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

@Katze719 Katze719 force-pushed the 36-missing-include-versionh branch from 7646019 to e3fed1b Compare November 12, 2025 17:00
@Katze719 Katze719 merged commit 8d6745a into main Nov 12, 2025
@Katze719 Katze719 deleted the 36-missing-include-versionh branch November 12, 2025 17:02
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.

missing include version.h

2 participants