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
be5b4552
Commit
be5b4552
authored
Sep 27, 2017
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make null_terminating_iterator more iteratory
parent
643fb066
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
fmt/format.h
fmt/format.h
+6
-3
No files found.
fmt/format.h
View file @
be5b4552
...
...
@@ -769,8 +769,11 @@ const Char *pointer_from(null_terminating_iterator<Char> it);
template
<
typename
Char
>
class
null_terminating_iterator
{
public:
typedef
Char
value_type
;
typedef
std
::
ptrdiff_t
difference_type
;
using
difference_type
=
std
::
ptrdiff_t
;
using
value_type
=
Char
;
using
pointer
=
const
Char
*
;
using
reference
=
const
Char
&
;
using
iterator_category
=
std
::
random_access_iterator_tag
;
null_terminating_iterator
()
:
ptr_
(
0
),
end_
(
0
)
{}
...
...
@@ -3314,7 +3317,7 @@ class dynamic_specs_handler :
template
<
typename
Iterator
,
typename
Handler
>
Iterator
parse_arg_id
(
Iterator
it
,
Handler
handler
)
{
typedef
typename
Iterator
::
value_type
char
_type
;
using
char_type
=
typename
std
::
iterator_traits
<
Iterator
>::
value
_type
;
char_type
c
=
*
it
;
if
(
c
==
'}'
||
c
==
':'
)
{
handler
();
...
...
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