mirror of
https://github.com/fmtlib/fmt.git
synced 2026-10-29 02:17:28 +08:00
Initialize the file pointer when constructing a buffer writer
This commit is contained in:
parent
21c5445e8c
commit
34c7ca0cf6
@ -1091,7 +1091,7 @@ class writer {
|
||||
|
||||
public:
|
||||
inline writer(FILE* f) : buf_(nullptr), file_(f) {}
|
||||
inline writer(detail::buffer<char>& buf) : buf_(&buf) {}
|
||||
inline writer(detail::buffer<char>& buf) : buf_(&buf), file_(nullptr) {}
|
||||
|
||||
/// Formats `args` according to specifications in `fmt` and writes the
|
||||
/// output to the file.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user