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
48b7e3da
Commit
48b7e3da
authored
Jun 07, 2022
by
Mattes D
Committed by
Victor Zverovich
Jun 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a FMT_STRING wrapper for system_error() call.
This enables the use of FMT_ENFORCE_COMPILE_STRING on MSVC 2019.
parent
4bb3af7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
include/fmt/format-inl.h
include/fmt/format-inl.h
+2
-1
No files found.
include/fmt/format-inl.h
View file @
48b7e3da
...
@@ -80,7 +80,8 @@ FMT_FUNC void report_error(format_func func, int error_code,
...
@@ -80,7 +80,8 @@ FMT_FUNC void report_error(format_func func, int error_code,
inline
void
fwrite_fully
(
const
void
*
ptr
,
size_t
size
,
size_t
count
,
inline
void
fwrite_fully
(
const
void
*
ptr
,
size_t
size
,
size_t
count
,
FILE
*
stream
)
{
FILE
*
stream
)
{
size_t
written
=
std
::
fwrite
(
ptr
,
size
,
count
,
stream
);
size_t
written
=
std
::
fwrite
(
ptr
,
size
,
count
,
stream
);
if
(
written
<
count
)
FMT_THROW
(
system_error
(
errno
,
"cannot write to file"
));
if
(
written
<
count
)
FMT_THROW
(
system_error
(
errno
,
FMT_STRING
(
"cannot write to file"
)));
}
}
#ifndef FMT_STATIC_THOUSANDS_SEPARATOR
#ifndef FMT_STATIC_THOUSANDS_SEPARATOR
...
...
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