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
5c7474e1
Commit
5c7474e1
authored
Feb 04, 2018
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Relax constexpr requirements
parent
1f57243b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
include/fmt/core.h
include/fmt/core.h
+2
-2
include/fmt/format.h
include/fmt/format.h
+4
-4
No files found.
include/fmt/core.h
View file @
5c7474e1
...
...
@@ -50,10 +50,10 @@
#endif
#if FMT_USE_CONSTEXPR
# define FMT_CONSTEXPR constexpr
# define FMT_CONSTEXPR_
VAR
constexpr
# define FMT_CONSTEXPR_
DECL
constexpr
#else
# define FMT_CONSTEXPR inline
# define FMT_CONSTEXPR_
VAR
# define FMT_CONSTEXPR_
DECL
#endif
#ifndef FMT_OVERRIDE
...
...
include/fmt/format.h
View file @
5c7474e1
...
...
@@ -636,7 +636,7 @@ class null_terminating_iterator {
return
ptr_
>=
other
.
ptr_
;
}
friend
FMT_CONSTEXPR
const
Char
*
pointer_from
<
Char
>
(
friend
FMT_CONSTEXPR
_DECL
const
Char
*
pointer_from
<
Char
>
(
null_terminating_iterator
it
);
private:
...
...
@@ -3216,7 +3216,7 @@ template <typename String, typename... Args>
inline
typename
std
::
enable_if
<
std
::
is_base_of
<
internal
::
format_string
,
String
>::
value
,
std
::
string
>::
type
format
(
String
format_str
,
const
Args
&
...
args
)
{
FMT_CONSTEXPR_
VAR
bool
invalid_format
=
FMT_CONSTEXPR_
DECL
bool
invalid_format
=
internal
::
check_format_string
<
char
,
internal
::
error_handler
,
Args
...
>
(
string_view
(
format_str
.
value
(),
format_str
.
size
()));
(
void
)
invalid_format
;
...
...
@@ -3243,8 +3243,8 @@ class udl_formatter {
public:
template
<
typename
...
Args
>
std
::
basic_string
<
Char
>
operator
()(
const
Args
&
...
args
)
const
{
FMT_CONSTEXPR_
VAR
Char
s
[]
=
{
CHARS
...,
'\0'
};
FMT_CONSTEXPR_
VAR
bool
invalid_format
=
FMT_CONSTEXPR_
DECL
Char
s
[]
=
{
CHARS
...,
'\0'
};
FMT_CONSTEXPR_
DECL
bool
invalid_format
=
check_format_string
<
Char
,
error_handler
,
Args
...
>
(
basic_string_view
<
Char
>
(
s
,
sizeof
...(
CHARS
)));
(
void
)
invalid_format
;
...
...
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