Commit 1960c5ef authored by Dominik Charousset's avatar Dominik Charousset

Prohibit implicit conversions for singly_linked

parent 8ed9e856
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment