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
98cbb6a4
Commit
98cbb6a4
authored
Jan 05, 2022
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix ABI compatiblity issue
parent
214cf13f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
include/fmt/core.h
include/fmt/core.h
+1
-2
include/fmt/format-inl.h
include/fmt/format-inl.h
+6
-0
No files found.
include/fmt/core.h
View file @
98cbb6a4
...
...
@@ -615,8 +615,7 @@ struct error_handler {
constexpr
error_handler
(
const
error_handler
&
)
=
default
;
// This function is intentionally not constexpr to give a compile-time error.
// This function is marked as FMT_API for backwards compatibility, see #2695.
FMT_NORETURN
FMT_API
void
on_error
(
const
char
*
message
)
{
throw_format_error
(
message
);
}
FMT_NORETURN
FMT_API
void
on_error
(
const
char
*
message
);
};
FMT_END_DETAIL_NAMESPACE
...
...
include/fmt/format-inl.h
View file @
98cbb6a4
...
...
@@ -2575,6 +2575,12 @@ FMT_FUNC void report_system_error(int error_code,
report_error
(
format_system_error
,
error_code
,
message
);
}
// DEPRECATED!
// This function is defined here and not inline for ABI compatiblity.
FMT_FUNC
void
detail
::
error_handler
::
on_error
(
const
char
*
message
)
{
throw_format_error
(
message
);
}
FMT_FUNC
std
::
string
vformat
(
string_view
fmt
,
format_args
args
)
{
// Don't optimize the "{}" case to keep the binary size small and because it
// can be better optimized in fmt::format anyway.
...
...
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