Skip to content

Conversation

@elbeno
Copy link
Contributor

@elbeno elbeno commented Jan 16, 2025

Problem:

  • ct_format produces a format_result in all cases. In some cases the runtime argument tuple is empty and it is convenient to be able to convert implicitly to a ct_string.

Solution:

  • Allow implicit conversion from a format_result to a ct_string in the case where there are no runtime arguments and the format_result contains only a ct_string.

Problem:
- `ct_format` produces a `format_result` in all cases. In some cases the runtime
  argument tuple is empty and it is convenient to be able to convert implicitly
  to a `ct_string`.

Solution:
- Allow implicit conversion from a `format_result` to a `ct_string` in the case
  where there are no runtime arguments and the `format_result` contains only a
  `ct_string`.
@elbeno elbeno force-pushed the implicit-convert-fmt-result-to-ct-string branch from 614a027 to 7fc7b00 Compare January 16, 2025 15:58
@elbeno elbeno merged commit 0281d9a into intel:main Jan 16, 2025
32 checks passed
@elbeno elbeno deleted the implicit-convert-fmt-result-to-ct-string branch January 16, 2025 21:48
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