Skip to content

🎨 Add implicit conversion from cts_t to ct_string#244

Merged
lukevalenty merged 1 commit intointel:mainfrom
elbeno:ctst-implicit-convert
Jul 9, 2025
Merged

🎨 Add implicit conversion from cts_t to ct_string#244
lukevalenty merged 1 commit intointel:mainfrom
elbeno:ctst-implicit-convert

Conversation

@elbeno
Copy link
Contributor

@elbeno elbeno commented Jul 9, 2025

Problem:

  • Maintaining the constexpr natured of a ct_string means passing around cts_t values a lot, but template parameters are often specified as ct_strings. It's annoying to have to write str.value rather than just str everywhere.

Solution:

  • Allow a cts_t to implicitly convert to the corresponding ct_string.

Problem:
- Maintaining the constexpr natured of a `ct_string` means passing around
  `cts_t` values a lot, but template parameters are often specified as
  `ct_strings`. It's annoying to have to write `str.value` rather than just
  `str` everywhere.

Solution:
- Allow a `cts_t` to implicitly convert to the corresponding `ct_string`.
@lukevalenty lukevalenty enabled auto-merge July 9, 2025 22:10
@lukevalenty lukevalenty merged commit 543e357 into intel:main Jul 9, 2025
42 checks passed
@elbeno elbeno deleted the ctst-implicit-convert branch July 9, 2025 22: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.

2 participants