Skip to content

🎨 Allow implicit conversion of format_result to ct_string #188

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 16, 2025

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