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

Allow %s as generic format specifier #449

Closed
mojoBrendan opened this issue Jan 3, 2017 · 2 comments
Closed

Allow %s as generic format specifier #449

mojoBrendan opened this issue Jan 3, 2017 · 2 comments

Comments

@mojoBrendan
Copy link
Contributor

Porting from another library (tinyformat), which allows %s to be used to get the default format for any parameter. At the moment this causes fmt to throw.

It would be nice (and I think straightforward) if %s could be supported for all types in the printf style functions.

@vitaut
Copy link
Contributor

vitaut commented Jan 6, 2017

Sounds like a reasonable suggestion. This is already supported for bool and should be straightforward to do for other types. However it may take some time till I get to this since I'm busy with other stuff. Perhaps someone could contribute?

@mojoBrendan
Copy link
Contributor Author

Sounds great. I have something working at the moment. Let me clean it up a bit. I'll get a pull request happening next week.

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