mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-02 06:20:09 +00:00
Break long lines
This commit is contained in:
parent
ea06f021f8
commit
f5dc0ed342
@ -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();
|
||||||
|
@ -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()));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user