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
4a502d98
Commit
4a502d98
authored
Jun 11, 2019
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add remove_reference_t
parent
d384cdd3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
include/fmt/core.h
include/fmt/core.h
+3
-2
include/fmt/format.h
include/fmt/format.h
+1
-1
No files found.
include/fmt/core.h
View file @
4a502d98
...
...
@@ -196,6 +196,8 @@ using enable_if_t = typename std::enable_if<B, T>::type;
template
<
bool
B
,
class
T
,
class
F
>
using
conditional_t
=
typename
std
::
conditional
<
B
,
T
,
F
>::
type
;
template
<
bool
B
>
using
bool_constant
=
std
::
integral_constant
<
bool
,
B
>
;
template
<
typename
T
>
using
remove_reference_t
=
typename
std
::
remove_reference
<
T
>::
type
;
struct
monostate
{};
...
...
@@ -1311,8 +1313,7 @@ template <typename OutputIt, typename S, typename Char = char_t<S>,
internal
::
is_contiguous_back_insert_iterator
<
OutputIt
>::
value
)
>
OutputIt
vformat_to
(
OutputIt
out
,
const
S
&
format_str
,
basic_format_args
<
buffer_context
<
Char
>>
args
)
{
using
container
=
typename
std
::
remove_reference
<
decltype
(
internal
::
get_container
(
out
))
>::
type
;
using
container
=
remove_reference_t
<
decltype
(
internal
::
get_container
(
out
))
>
;
internal
::
container_buffer
<
container
>
buf
((
internal
::
get_container
(
out
)));
internal
::
vformat_to
(
buf
,
to_string_view
(
format_str
),
args
);
return
out
;
...
...
include/fmt/format.h
View file @
4a502d98
...
...
@@ -3460,7 +3460,7 @@ template <typename It> class is_output_iterator {
template
<
typename
U
>
static
const
char
&
test
(...);
typedef
decltype
(
test
<
It
>
(
typename
it_category
<
It
>::
type
{}))
type
;
typedef
typename
std
::
remove_reference
<
type
>::
type
result
;
typedef
remove_reference_t
<
type
>
result
;
public:
static
const
bool
value
=
!
std
::
is_const
<
result
>::
value
;
...
...
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