Skip to content
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

FMT_STRING doesn't work with time formatting #1938

Closed
EgorkaZ opened this issue Oct 16, 2020 · 1 comment
Closed

FMT_STRING doesn't work with time formatting #1938

EgorkaZ opened this issue Oct 16, 2020 · 1 comment

Comments

@EgorkaZ
Copy link

EgorkaZ commented Oct 16, 2020

An attempt to add FMT_FORMAT to time format string causes a compilation error. However, the code compiled without the check runs as expected

Example: https://godbolt.org/z/dPofca

@vitaut
Copy link
Contributor

vitaut commented Oct 16, 2020

That's expected. Time formatting relies on system functions (strftime) that are not constexpr.

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

No branches or pull requests

2 participants