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
ffe29a92
Commit
ffe29a92
authored
Aug 24, 2019
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of internal::compile
parent
e94d7236
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
include/fmt/compile.h
include/fmt/compile.h
+2
-8
No files found.
include/fmt/compile.h
View file @
ffe29a92
...
...
@@ -549,16 +549,9 @@ template <typename... Args>
using
prepared_format_t
=
typename
basic_prepared_format
<
std
::
string
,
parts_container
<
char
>
,
Args
...
>::
type
;
template
<
typename
...
Args
,
typename
S
>
auto
compile
(
S
format_str
)
->
typename
internal
::
preparator
<
S
,
Args
...
>::
prepared_format_type
{
return
internal
::
preparator
<
S
,
Args
...
>::
prepare
(
std
::
move
(
format_str
));
}
}
// namespace internal
#if FMT_USE_CONSTEXPR
template
<
typename
...
Args
,
typename
S
,
FMT_ENABLE_IF
(
is_compile_string
<
S
>
::
value
)
>
FMT_CONSTEXPR
auto
compile
(
S
format_str
)
{
...
...
@@ -572,7 +565,8 @@ auto compile(const Char (&format_str)[N]) ->
typename
internal
::
preparator
<
std
::
basic_string
<
Char
>
,
Args
...
>::
prepared_format_type
{
const
auto
view
=
basic_string_view
<
Char
>
(
format_str
,
N
-
1
);
return
internal
::
compile
<
Args
...
>
(
internal
::
to_runtime_format
(
view
));
return
internal
::
preparator
<
std
::
basic_string
<
Char
>
,
Args
...
>::
prepare
(
internal
::
to_runtime_format
(
view
));
}
template
<
typename
CompiledFormat
,
typename
...
Args
,
...
...
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