Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
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
Operations
Operations
Metrics
Environments
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
cpp-libs
Actor Framework
Commits
f62b9932
Commit
f62b9932
authored
Mar 03, 2021
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Integrate review feedback
parent
528e7e26
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
libcaf_core/caf/load_inspector.hpp
libcaf_core/caf/load_inspector.hpp
+2
-2
libcaf_core/test/load_inspector.cpp
libcaf_core/test/load_inspector.cpp
+1
-1
No files found.
libcaf_core/caf/load_inspector.hpp
View file @
f62b9932
...
...
@@ -345,7 +345,7 @@ public:
return
virt_field_t
<
field_type
,
Set
>
{
name
,
std
::
move
(
set
)};
}
else
{
static_assert
(
std
::
is_same
<
setter_result
,
void
>::
value
,
"setter must return caf::error, bool or void"
);
"
a
setter must return caf::error, bool or void"
);
auto
set_fun
=
[
f
{
std
::
move
(
set
)}](
field_type
&&
val
)
{
f
(
std
::
move
(
val
));
return
true
;
...
...
@@ -367,7 +367,7 @@ public:
std
::
move
(
set
)};
}
else
{
static_assert
(
std
::
is_same
<
setter_result
,
void
>::
value
,
"setter must return caf::error, bool or void"
);
"
a
setter must return caf::error, bool or void"
);
auto
set_fun
=
[
f
{
std
::
move
(
set
)}](
field_type
&&
val
)
{
f
(
std
::
move
(
val
));
return
true
;
...
...
libcaf_core/test/load_inspector.cpp
View file @
f62b9932
...
...
@@ -661,7 +661,7 @@ end object)_";
auto
x
=
line
{{
10
,
10
,
10
},
{
20
,
20
,
20
}};
auto
get
=
[
&
x
]
{
return
x
;
};
auto
set
=
[](
line
)
{
return
error
{
sec
::
runtime_error
};
};
THEN
(
"the inspect
or overrides the state using the setter
"
)
{
THEN
(
"the inspect
ion fails
"
)
{
CHECK
(
!
f
.
apply
(
get
,
set
));
CHECK_EQ
(
f
.
get_error
(),
sec
::
runtime_error
);
}
...
...
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