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
c71b0701
Unverified
Commit
c71b0701
authored
Feb 10, 2022
by
Vladislav Shchapov
Committed by
GitHub
Feb 10, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing const qualifier (#2755)
parent
ecd6022c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
include/fmt/ranges.h
include/fmt/ranges.h
+4
-3
No files found.
include/fmt/ranges.h
View file @
c71b0701
...
...
@@ -304,7 +304,8 @@ struct formatter<TupleT, Char, enable_if_t<fmt::is_tuple_like<TupleT>::value>> {
}
template
<
typename
FormatContext
=
format_context
>
auto
format
(
const
TupleT
&
values
,
FormatContext
&
ctx
)
->
decltype
(
ctx
.
out
())
{
auto
format
(
const
TupleT
&
values
,
FormatContext
&
ctx
)
const
->
decltype
(
ctx
.
out
())
{
auto
out
=
ctx
.
out
();
*
out
++
=
'('
;
detail
::
for_each
(
values
,
format_each
<
FormatContext
>
{
0
,
out
});
...
...
@@ -385,7 +386,7 @@ struct formatter<
FMT_ENABLE_IF
(
std
::
is_same
<
U
,
conditional_t
<
detail
::
has_const_begin_end
<
R
>
::
value
,
const
R
,
R
>>::
value
)
>
auto
format
(
U
&
range
,
FormatContext
&
ctx
)
->
decltype
(
ctx
.
out
())
{
auto
format
(
U
&
range
,
FormatContext
&
ctx
)
const
->
decltype
(
ctx
.
out
())
{
#ifdef FMT_DEPRECATED_BRACED_RANGES
Char
prefix
=
'{'
;
Char
postfix
=
'}'
;
...
...
@@ -435,7 +436,7 @@ struct formatter<
FMT_ENABLE_IF
(
std
::
is_same
<
U
,
conditional_t
<
detail
::
has_const_begin_end
<
T
>
::
value
,
const
T
,
T
>>::
value
)
>
auto
format
(
U
&
map
,
FormatContext
&
ctx
)
->
decltype
(
ctx
.
out
())
{
auto
format
(
U
&
map
,
FormatContext
&
ctx
)
const
->
decltype
(
ctx
.
out
())
{
auto
out
=
ctx
.
out
();
*
out
++
=
'{'
;
int
i
=
0
;
...
...
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