Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
acts-core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
acts
acts-core
Commits
3ee13535
Commit
3ee13535
authored
5 years ago
by
Paul Gessinger
Browse files
Options
Downloads
Patches
Plain Diff
fix static assert comments
parent
1f210072
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!797
Workaround for is_invokable problem
Pipeline
#1506311
failed
5 years ago
Stage: check
Stage: build
Stage: test
Stage: analysis
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Tests/CommonHelpers/Acts/Tests/CommonHelpers/BenchmarkTools.hpp
+2
-2
2 additions, 2 deletions
...CommonHelpers/Acts/Tests/CommonHelpers/BenchmarkTools.hpp
with
2 additions
and
2 deletions
Tests/CommonHelpers/Acts/Tests/CommonHelpers/BenchmarkTools.hpp
+
2
−
2
View file @
3ee13535
...
@@ -364,7 +364,7 @@ struct MicroBenchmarkIter {
...
@@ -364,7 +364,7 @@ struct MicroBenchmarkIter {
concept
::
exists
<
call_with_input_t
,
Callable
,
Input
>
;
concept
::
exists
<
call_with_input_t
,
Callable
,
Input
>
;
static
inline
void
iter
(
const
Callable
&
iteration
,
const
Input
*
input
)
{
static
inline
void
iter
(
const
Callable
&
iteration
,
const
Input
*
input
)
{
static_assert
(
is_callable
,
static_assert
(
is_callable
,
"Gave callable that is not callable with
out
input"
);
"Gave callable that is not callable with input"
);
if
constexpr
(
is_callable
)
{
if
constexpr
(
is_callable
)
{
using
Result
=
std
::
invoke_result_t
<
Callable
,
const
Input
&>
;
using
Result
=
std
::
invoke_result_t
<
Callable
,
const
Input
&>
;
MicroBenchmarkIterImpl
<
Callable
,
Input
,
Result
>::
iter
(
iteration
,
*
input
);
MicroBenchmarkIterImpl
<
Callable
,
Input
,
Result
>::
iter
(
iteration
,
*
input
);
...
@@ -380,7 +380,7 @@ struct MicroBenchmarkIter<Callable, void> {
...
@@ -380,7 +380,7 @@ struct MicroBenchmarkIter<Callable, void> {
concept
::
exists
<
call_without_input_t
,
Callable
>
;
concept
::
exists
<
call_without_input_t
,
Callable
>
;
static
inline
void
iter
(
const
Callable
&
iteration
,
const
void
*
=
nullptr
)
{
static
inline
void
iter
(
const
Callable
&
iteration
,
const
void
*
=
nullptr
)
{
static_assert
(
is_callable
,
"Gave callable that is not callable with input"
);
static_assert
(
is_callable
,
"Gave callable that is not callable with
out
input"
);
if
constexpr
(
is_callable
)
{
if
constexpr
(
is_callable
)
{
using
Result
=
std
::
invoke_result_t
<
Callable
>
;
using
Result
=
std
::
invoke_result_t
<
Callable
>
;
MicroBenchmarkIterImpl
<
Callable
,
void
,
Result
>::
iter
(
iteration
);
MicroBenchmarkIterImpl
<
Callable
,
void
,
Result
>::
iter
(
iteration
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment