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
1960c5ef
Commit
1960c5ef
authored
Aug 05, 2023
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prohibit implicit conversions for singly_linked
parent
8ed9e856
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
libcaf_core/caf/intrusive/singly_linked.hpp
libcaf_core/caf/intrusive/singly_linked.hpp
+8
-2
No files found.
libcaf_core/caf/intrusive/singly_linked.hpp
View file @
1960c5ef
...
...
@@ -20,14 +20,20 @@ struct singly_linked {
// -- constructors, destructors, and assignment operators --------------------
singly_linked
(
node_pointer
n
=
nullptr
)
:
next
(
n
)
{
singly_linked
()
noexcept
=
default
;
explicit
singly_linked
(
node_pointer
n
)
noexcept
:
next
(
n
)
{
// nop
}
singly_linked
(
const
singly_linked
&
)
=
delete
;
singly_linked
&
operator
=
(
const
singly_linked
&
)
=
delete
;
// -- member variables -------------------------------------------------------
/// Intrusive pointer to the next element.
node_pointer
next
;
node_pointer
next
=
nullptr
;
};
}
// namespace caf::intrusive
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