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
807ee5ec
Commit
807ee5ec
authored
Sep 25, 2021
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable consteval in Apple clang
parent
d9a731d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
include/fmt/core.h
include/fmt/core.h
+13
-7
No files found.
include/fmt/core.h
View file @
807ee5ec
...
@@ -247,10 +247,10 @@
...
@@ -247,10 +247,10 @@
#endif
#endif
#ifndef FMT_CONSTEVAL
#ifndef FMT_CONSTEVAL
# if ((FMT_GCC_VERSION >= 1000 || FMT_CLANG_VERSION >= 1101) && \
# if ((FMT_GCC_VERSION >= 1000 || FMT_CLANG_VERSION >= 1101) &&
\
__cplusplus > 201703L
) ||
\
__cplusplus > 201703L
&& !defined(__apple_build_version__)) ||
\
(defined(__cpp_consteval) && \
(defined(__cpp_consteval) &&
\
!FMT_MSC_VER) // consteval is broken in MSVC.
!FMT_MSC_VER) // consteval is broken in MSVC
and Apple clang 13
.
# define FMT_CONSTEVAL consteval
# define FMT_CONSTEVAL consteval
# define FMT_HAS_CONSTEVAL
# define FMT_HAS_CONSTEVAL
# else
# else
...
@@ -872,7 +872,9 @@ class iterator_buffer final : public Traits, public buffer<T> {
...
@@ -872,7 +872,9 @@ class iterator_buffer final : public Traits, public buffer<T> {
};
};
template
<
typename
T
>
template
<
typename
T
>
class
iterator_buffer
<
T
*
,
T
,
fixed_buffer_traits
>
final
:
public
fixed_buffer_traits
,
public
buffer
<
T
>
{
class
iterator_buffer
<
T
*
,
T
,
fixed_buffer_traits
>
final
:
public
fixed_buffer_traits
,
public
buffer
<
T
>
{
private:
private:
T
*
out_
;
T
*
out_
;
enum
{
buffer_size
=
256
};
enum
{
buffer_size
=
256
};
...
@@ -896,7 +898,9 @@ class iterator_buffer<T*, T, fixed_buffer_traits> final : public fixed_buffer_tr
...
@@ -896,7 +898,9 @@ class iterator_buffer<T*, T, fixed_buffer_traits> final : public fixed_buffer_tr
explicit
iterator_buffer
(
T
*
out
,
size_t
n
=
buffer_size
)
explicit
iterator_buffer
(
T
*
out
,
size_t
n
=
buffer_size
)
:
fixed_buffer_traits
(
n
),
buffer
<
T
>
(
out
,
0
,
n
),
out_
(
out
)
{}
:
fixed_buffer_traits
(
n
),
buffer
<
T
>
(
out
,
0
,
n
),
out_
(
out
)
{}
iterator_buffer
(
iterator_buffer
&&
other
)
iterator_buffer
(
iterator_buffer
&&
other
)
:
fixed_buffer_traits
(
other
),
buffer
<
T
>
(
std
::
move
(
other
)),
out_
(
other
.
out_
)
{
:
fixed_buffer_traits
(
other
),
buffer
<
T
>
(
std
::
move
(
other
)),
out_
(
other
.
out_
)
{
if
(
this
->
data
()
!=
out_
)
{
if
(
this
->
data
()
!=
out_
)
{
this
->
set
(
data_
,
buffer_size
);
this
->
set
(
data_
,
buffer_size
);
this
->
clear
();
this
->
clear
();
...
@@ -908,7 +912,9 @@ class iterator_buffer<T*, T, fixed_buffer_traits> final : public fixed_buffer_tr
...
@@ -908,7 +912,9 @@ class iterator_buffer<T*, T, fixed_buffer_traits> final : public fixed_buffer_tr
flush
();
flush
();
return
out_
;
return
out_
;
}
}
auto
count
()
const
->
size_t
{
return
fixed_buffer_traits
::
count
()
+
this
->
size
();
}
auto
count
()
const
->
size_t
{
return
fixed_buffer_traits
::
count
()
+
this
->
size
();
}
};
};
template
<
typename
T
>
class
iterator_buffer
<
T
*
,
T
>
final
:
public
buffer
<
T
>
{
template
<
typename
T
>
class
iterator_buffer
<
T
*
,
T
>
final
:
public
buffer
<
T
>
{
...
...
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