Skip to content

Conversation

@elbeno
Copy link
Contributor

@elbeno elbeno commented Oct 12, 2025

Problem:

  • fmt uses std::string which is not available in freestanding implementations.

Solution:

  • Allow freestanding to use ct_format with a limited format capability.

Note:

  • At the moment, freestanding compile-time formatting is limited to string-like things (which includes type names and enumerators) and integral things, in base 10 or base 16. If there are further use cases, we may expand this in future.

Problem:
- `fmt` uses `std::string` which is not available in freestanding
  implementations.

Solution:
- Allow freestanding to use `ct_format` with a limited format capability.

Note:
- At the moment, freestanding compile-time formatting is limited to string-like
  things (which includes type names and enumerators) and integral things, in
  base 10 or base 16. If there are further use cases, we may expand this in
  future.
@elbeno elbeno merged commit 291a9e2 into intel:main Oct 14, 2025
48 checks passed
@elbeno elbeno deleted the freestanding-fmt branch October 16, 2025 20:04
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