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
b34b4b0d
Commit
b34b4b0d
authored
Nov 21, 2020
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use standard operator= signatures, close #1168
parent
263645b6
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
3 deletions
+14
-3
libcaf_core/caf/intrusive_ptr.hpp
libcaf_core/caf/intrusive_ptr.hpp
+6
-1
libcaf_core/caf/weak_intrusive_ptr.hpp
libcaf_core/caf/weak_intrusive_ptr.hpp
+6
-1
libcaf_core/src/detail/type_id_list_builder.cpp
libcaf_core/src/detail/type_id_list_builder.cpp
+2
-0
libcaf_core/test/cow_tuple.cpp
libcaf_core/test/cow_tuple.cpp
+0
-1
No files found.
libcaf_core/caf/intrusive_ptr.hpp
View file @
b34b4b0d
...
...
@@ -129,11 +129,16 @@ public:
return
*
this
;
}
intrusive_ptr
&
operator
=
(
intrusive_ptr
other
)
noexcept
{
intrusive_ptr
&
operator
=
(
intrusive_ptr
&&
other
)
noexcept
{
swap
(
other
);
return
*
this
;
}
intrusive_ptr
&
operator
=
(
const
intrusive_ptr
&
other
)
noexcept
{
reset
(
other
.
ptr_
);
return
*
this
;
}
pointer
get
()
const
noexcept
{
return
ptr_
;
}
...
...
libcaf_core/caf/weak_intrusive_ptr.hpp
View file @
b34b4b0d
...
...
@@ -105,11 +105,16 @@ public:
return
*
this
;
}
weak_intrusive_ptr
&
operator
=
(
weak_intrusive_ptr
other
)
noexcept
{
weak_intrusive_ptr
&
operator
=
(
weak_intrusive_ptr
&&
other
)
noexcept
{
swap
(
other
);
return
*
this
;
}
weak_intrusive_ptr
&
operator
=
(
const
weak_intrusive_ptr
&
other
)
noexcept
{
reset
(
other
.
ptr_
);
return
*
this
;
}
pointer
get
()
const
noexcept
{
return
ptr_
;
}
...
...
libcaf_core/src/detail/type_id_list_builder.cpp
View file @
b34b4b0d
...
...
@@ -45,6 +45,8 @@ struct dyn_type_id_list {
other
.
hash
=
0
;
}
dyn_type_id_list
&
operator
=
(
dyn_type_id_list
&&
)
noexcept
=
delete
;
~
dyn_type_id_list
()
{
free
(
storage
);
}
...
...
libcaf_core/test/cow_tuple.cpp
View file @
b34b4b0d
...
...
@@ -78,7 +78,6 @@ CAF_TEST(move_assignment) {
x
=
std
::
move
(
y
);
CAF_CHECK_EQUAL
(
x
,
make_tuple
(
3
,
4
));
CAF_CHECK_EQUAL
(
x
.
unique
(),
true
);
CAF_CHECK_EQUAL
(
y
.
ptr
(),
nullptr
);
}
CAF_TEST
(
make_cow_tuple
)
{
...
...
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