Skip to content

🎨 CX_WRAP should leave empty types alone#252

Merged
mjcaisse-intel merged 1 commit intointel:mainfrom
elbeno:cx-wrap-integral-constant
Jul 14, 2025
Merged

🎨 CX_WRAP should leave empty types alone#252
mjcaisse-intel merged 1 commit intointel:mainfrom
elbeno:cx-wrap-integral-constant

Conversation

@elbeno
Copy link
Contributor

@elbeno elbeno commented Jul 13, 2025

Problem:

  • CX_WRAP sometimes (on GCC) wraps empty types. In fact empty types (like std::integral_constant specializations) can be used as constexpr values just fine even when the "value" is not marked constexpr.

Solution:

  • Detect empty types in CX_WRAP and leave them alone.

Problem:
- `CX_WRAP` sometimes (on GCC) wraps empty types. In fact empty types (like
  `std::integral_constant` specializations) can be used as `constexpr` values
  just fine even when the "value" is not marked `constexpr`.

Solution:
- Detect empty types in `CX_WRAP` and leave them alone.
@mjcaisse-intel mjcaisse-intel merged commit b9ed877 into intel:main Jul 14, 2025
79 of 84 checks passed
@elbeno elbeno deleted the cx-wrap-integral-constant branch October 16, 2025 20: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