Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fmt
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
fmt
Commits
f5dc0ed3
Commit
f5dc0ed3
authored
Feb 24, 2018
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Break long lines
parent
ea06f021
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
include/fmt/format.h
include/fmt/format.h
+2
-1
include/fmt/posix.cc
include/fmt/posix.cc
+2
-1
No files found.
include/fmt/format.h
View file @
f5dc0ed3
...
...
@@ -3199,7 +3199,8 @@ template <typename It, typename Char>
struct
formatter
<
arg_join
<
It
,
Char
>
,
Char
>:
formatter
<
typename
std
::
iterator_traits
<
It
>::
value_type
,
Char
>
{
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
;
auto
it
=
value
.
begin
;
auto
out
=
ctx
.
begin
();
...
...
include/fmt/posix.cc
View file @
f5dc0ed3
...
...
@@ -71,7 +71,8 @@ fmt::BufferedFile::~BufferedFile() FMT_NOEXCEPT {
fmt
::
BufferedFile
::
BufferedFile
(
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_
)
FMT_THROW
(
system_error
(
errno
,
"cannot open file {}"
,
filename
.
c_str
()));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment