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
89c6ed12
Commit
89c6ed12
authored
Jan 01, 2022
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify in comments (for now) deprecated map functions
parent
e462da82
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
include/fmt/core.h
include/fmt/core.h
+6
-6
No files found.
include/fmt/core.h
View file @
89c6ed12
...
@@ -1373,16 +1373,20 @@ template <typename Context> struct arg_mapper {
...
@@ -1373,16 +1373,20 @@ template <typename Context> struct arg_mapper {
using
cstring_result
=
conditional_t
<
std
::
is_same
<
char_type
,
char
>::
value
,
using
cstring_result
=
conditional_t
<
std
::
is_same
<
char_type
,
char
>::
value
,
const
char
*
,
unformattable_pointer
>
;
const
char
*
,
unformattable_pointer
>
;
// DEPRECATED!
FMT_CONSTEXPR
FMT_INLINE
auto
map
(
const
signed
char
*
val
)
->
cstring_result
{
FMT_CONSTEXPR
FMT_INLINE
auto
map
(
const
signed
char
*
val
)
->
cstring_result
{
return
map
(
reinterpret_cast
<
const
char
*>
(
val
));
return
map
(
reinterpret_cast
<
const
char
*>
(
val
));
}
}
// DEPRECATED!
FMT_CONSTEXPR
FMT_INLINE
auto
map
(
const
unsigned
char
*
val
)
FMT_CONSTEXPR
FMT_INLINE
auto
map
(
const
unsigned
char
*
val
)
->
cstring_result
{
->
cstring_result
{
return
map
(
reinterpret_cast
<
const
char
*>
(
val
));
return
map
(
reinterpret_cast
<
const
char
*>
(
val
));
}
}
// DEPRECATED!
FMT_CONSTEXPR
FMT_INLINE
auto
map
(
signed
char
*
val
)
->
cstring_result
{
FMT_CONSTEXPR
FMT_INLINE
auto
map
(
signed
char
*
val
)
->
cstring_result
{
return
map
(
reinterpret_cast
<
const
char
*>
(
val
));
return
map
(
reinterpret_cast
<
const
char
*>
(
val
));
}
}
// DEPRECATED!
FMT_CONSTEXPR
FMT_INLINE
auto
map
(
unsigned
char
*
val
)
->
cstring_result
{
FMT_CONSTEXPR
FMT_INLINE
auto
map
(
unsigned
char
*
val
)
->
cstring_result
{
return
map
(
reinterpret_cast
<
const
char
*>
(
val
));
return
map
(
reinterpret_cast
<
const
char
*>
(
val
));
}
}
...
@@ -1499,13 +1503,9 @@ class appender : public std::back_insert_iterator<detail::buffer<char>> {
...
@@ -1499,13 +1503,9 @@ class appender : public std::back_insert_iterator<detail::buffer<char>> {
appender
(
base
it
)
FMT_NOEXCEPT
:
base
(
it
)
{}
appender
(
base
it
)
FMT_NOEXCEPT
:
base
(
it
)
{}
using
_Unchecked_type
=
appender
;
// Mark iterator as checked.
using
_Unchecked_type
=
appender
;
// Mark iterator as checked.
auto
operator
++
()
FMT_NOEXCEPT
->
appender
&
{
auto
operator
++
()
FMT_NOEXCEPT
->
appender
&
{
return
*
this
;
}
return
*
this
;
}
auto
operator
++
(
int
)
FMT_NOEXCEPT
->
appender
{
auto
operator
++
(
int
)
FMT_NOEXCEPT
->
appender
{
return
*
this
;
}
return
*
this
;
}
};
};
// A formatting argument. It is a trivially copyable/constructible type to
// A formatting argument. It is a trivially copyable/constructible type to
...
...
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