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
098a8fde
Commit
098a8fde
authored
Sep 25, 2014
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify make_type
parent
75a2ea03
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
format.h
format.h
+3
-6
No files found.
format.h
View file @
098a8fde
...
...
@@ -1243,12 +1243,9 @@ struct ArgType {
ArgType
(
const
T
&
arg
)
:
type
(
make_type
(
arg
))
{}
};
inline
ULongLong
make_type
(
ArgType
t0
,
ArgType
t1
,
ArgType
t2
=
ArgType
(),
ArgType
t3
=
ArgType
(),
ArgType
t4
=
ArgType
(),
ArgType
t5
=
ArgType
(),
ArgType
t6
=
ArgType
(),
ArgType
t7
=
ArgType
(),
ArgType
t8
=
ArgType
(),
ArgType
t9
=
ArgType
(),
ArgType
t10
=
ArgType
(),
ArgType
t11
=
ArgType
(),
ArgType
t12
=
ArgType
(),
ArgType
t13
=
ArgType
(),
ArgType
t14
=
ArgType
())
{
# define FMT_ARG_TYPE_DEFAULT(n) ArgType t##n = ArgType()
inline
ULongLong
make_type
(
FMT_GEN15
(
FMT_ARG_TYPE_DEFAULT
))
{
return
t0
.
type
|
(
t1
.
type
<<
4
)
|
(
t2
.
type
<<
8
)
|
(
t3
.
type
<<
12
)
|
(
t4
.
type
<<
16
)
|
(
t5
.
type
<<
20
)
|
(
t6
.
type
<<
24
)
|
(
t7
.
type
<<
28
)
|
(
t8
.
type
<<
32
)
|
(
t9
.
type
<<
36
)
|
(
t10
.
type
<<
40
)
|
(
t11
.
type
<<
44
)
|
...
...
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