Break long lines

This commit is contained in:
Victor Zverovich 2018-02-24 08:39:17 +00:00
parent ea06f021f8
commit f5dc0ed342
2 changed files with 4 additions and 2 deletions

View File

@ -3199,7 +3199,8 @@ template <typename It, typename Char>
struct formatter<arg_join<It, Char>, Char>: struct formatter<arg_join<It, Char>, Char>:
formatter<typename std::iterator_traits<It>::value_type, Char> { formatter<typename std::iterator_traits<It>::value_type, Char> {
template <typename FormatContext> template <typename FormatContext>
auto format(const arg_join<It, Char> &value, FormatContext &ctx) -> decltype(ctx.begin()) { auto format(const arg_join<It, Char> &value, FormatContext &ctx)
-> decltype(ctx.begin()) {
typedef formatter<typename std::iterator_traits<It>::value_type, Char> base; typedef formatter<typename std::iterator_traits<It>::value_type, Char> base;
auto it = value.begin; auto it = value.begin;
auto out = ctx.begin(); auto out = ctx.begin();

View File

@ -71,7 +71,8 @@ fmt::BufferedFile::~BufferedFile() FMT_NOEXCEPT {
fmt::BufferedFile::BufferedFile( fmt::BufferedFile::BufferedFile(
fmt::cstring_view filename, fmt::cstring_view mode) { fmt::cstring_view filename, fmt::cstring_view mode) {
FMT_RETRY_VAL(file_, FMT_SYSTEM(fopen(filename.c_str(), mode.c_str())), FMT_NULL); FMT_RETRY_VAL(file_,
FMT_SYSTEM(fopen(filename.c_str(), mode.c_str())), FMT_NULL);
if (!file_) if (!file_)
FMT_THROW(system_error(errno, "cannot open file {}", filename.c_str())); FMT_THROW(system_error(errno, "cannot open file {}", filename.c_str()));
} }