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
f883d7ca
Commit
f883d7ca
authored
Aug 11, 2023
by
Samir Halilcevic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert std::move and std::forward
This reverts commit
1d0bed3a
.
parent
afd8df30
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
libcaf_core/caf/detail/config_consumer.cpp
libcaf_core/caf/detail/config_consumer.cpp
+2
-2
libcaf_core/caf/detail/config_consumer.hpp
libcaf_core/caf/detail/config_consumer.hpp
+1
-1
No files found.
libcaf_core/caf/detail/config_consumer.cpp
View file @
f883d7ca
...
@@ -31,10 +31,10 @@ config_list_consumer::config_list_consumer(config_value_consumer* parent)
...
@@ -31,10 +31,10 @@ config_list_consumer::config_list_consumer(config_value_consumer* parent)
pec
config_list_consumer
::
end_list
()
{
pec
config_list_consumer
::
end_list
()
{
auto
f
=
make_overload
([](
none_t
)
{
return
pec
::
success
;
},
auto
f
=
make_overload
([](
none_t
)
{
return
pec
::
success
;
},
[
this
](
config_consumer
*
ptr
)
{
[
this
](
config_consumer
*
ptr
)
{
return
ptr
->
value
(
config_value
{
result
});
return
ptr
->
value
(
config_value
{
std
::
move
(
result
)
});
},
},
[
this
](
auto
*
ptr
)
{
[
this
](
auto
*
ptr
)
{
ptr
->
value
(
config_value
{
result
});
ptr
->
value
(
config_value
{
std
::
move
(
result
)
});
return
pec
::
success
;
return
pec
::
success
;
});
});
return
visit
(
f
,
parent_
);
return
visit
(
f
,
parent_
);
...
...
libcaf_core/caf/detail/config_consumer.hpp
View file @
f883d7ca
...
@@ -109,7 +109,7 @@ public:
...
@@ -109,7 +109,7 @@ public:
else
else
return
pec
::
integer_overflow
;
return
pec
::
integer_overflow
;
}
else
{
}
else
{
return
value_impl
(
config_value
{
x
});
return
value_impl
(
config_value
{
std
::
forward
<
T
>
(
x
)
});
}
}
}
}
...
...
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