-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Add join argument allowing formating list of values separated by a #466
Conversation
string. Each value is formated according the format specifier.
Thanks for contributing. The PR looks good but could you follow the coding conventions described in https://github.com/fmtlib/fmt/blob/master/CONTRIBUTING.rst? |
Sorry. Hope it's ok now. |
fmt/format.h
Outdated
|
||
template <typename Char, typename It> | ||
struct ArgJoin | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The brace belongs to the previous line. Otherwise looks good.
fmt/format.h
Outdated
@@ -3865,6 +3865,72 @@ void BasicFormatter<Char, AF>::format(BasicCStringRef<Char> format_str) { | |||
} | |||
write(writer_, start, s); | |||
} | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: extra empty line
fmt/format.h
Outdated
} | ||
#endif | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also here
fmt/format.h
Outdated
|
||
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and a bunch here
Merged, thanks! |
Thank you ! |
string. Each value is formated according the format specifier.