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
1c3197b8
Commit
1c3197b8
authored
Jun 17, 2019
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix warnings
parent
fd2292f1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
+11
-6
include/fmt/core.h
include/fmt/core.h
+1
-1
include/fmt/format-inl.h
include/fmt/format-inl.h
+3
-0
include/fmt/format.h
include/fmt/format.h
+7
-5
No files found.
include/fmt/core.h
View file @
1c3197b8
...
...
@@ -766,7 +766,7 @@ template <typename Context> struct arg_mapper {
return
val
;
}
FMT_CONSTEXPR
double
map
(
float
val
)
{
return
val
;
}
FMT_CONSTEXPR
double
map
(
float
val
)
{
return
static_cast
<
double
>
(
val
)
;
}
FMT_CONSTEXPR
double
map
(
double
val
)
{
return
val
;
}
FMT_CONSTEXPR
long
double
map
(
long
double
val
)
{
return
val
;
}
...
...
include/fmt/format-inl.h
View file @
1c3197b8
...
...
@@ -218,6 +218,9 @@ FMT_FUNC Char internal::thousands_sep_impl(locale_ref) {
}
#endif
FMT_FUNC
format_error
::~
format_error
()
FMT_NOEXCEPT
{}
FMT_FUNC
system_error
::~
system_error
()
FMT_NOEXCEPT
{}
FMT_FUNC
void
system_error
::
init
(
int
err_code
,
string_view
format_str
,
format_args
args
)
{
error_code_
=
err_code
;
...
...
include/fmt/format.h
View file @
1c3197b8
...
...
@@ -73,10 +73,6 @@
# pragma GCC diagnostic ignored "-Wshadow"
#endif
#if FMT_CLANG_VERSION
# pragma GCC diagnostic ignored "-Wgnu-string-literal-operator-template"
#endif
#ifdef _SECURE_SCL
# define FMT_SECURE_SCL _SECURE_SCL
#else
...
...
@@ -299,9 +295,9 @@ using wwriter = basic_writer<back_insert_range<internal::buffer<wchar_t>>>;
class
format_error
:
public
std
::
runtime_error
{
public:
explicit
format_error
(
const
char
*
message
)
:
std
::
runtime_error
(
message
)
{}
explicit
format_error
(
const
std
::
string
&
message
)
:
std
::
runtime_error
(
message
)
{}
~
format_error
()
FMT_NOEXCEPT
;
};
namespace
internal
{
...
...
@@ -2274,6 +2270,7 @@ class system_error : public std::runtime_error {
:
std
::
runtime_error
(
""
)
{
init
(
error_code
,
message
,
make_format_args
(
args
...));
}
~
system_error
()
FMT_NOEXCEPT
;
int
error_code
()
const
{
return
error_code_
;
}
};
...
...
@@ -3555,10 +3552,15 @@ template <typename Char> struct udl_arg {
inline
namespace
literals
{
# if FMT_USE_UDL_TEMPLATE
# pragma GCC diagnostic push
# if FMT_CLANG_VERSION
# pragma GCC diagnostic ignored "-Wgnu-string-literal-operator-template"
# endif
template
<
typename
Char
,
Char
...
CHARS
>
FMT_CONSTEXPR
internal
::
udl_formatter
<
Char
,
CHARS
...
>
operator
""
_format
()
{
return
{};
}
# pragma GCC diagnostic pop
# else
/**
\rst
...
...
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