forked from Ferdi265/cxx-ring-buffer
basic_ring_buffer: allow to move construct from wrapped container type
This commit is contained in:
1 parent
f1562b7960
commit
1364f08e1f
2 files changed
+4
No files matched your search
@@ -22,6 +22,7 @@ public:
|
||||
basic_ring_buffer() = default;
|
||||
~basic_ring_buffer() = default;
|
||||
CONSTEXPR basic_ring_buffer(const Container& other) COND_NOEXCEPT(noexcept(Container(other))) : container(other) {}
|
||||
CONSTEXPR basic_ring_buffer(Container&& other) COND_NOEXCEPT(noexcept(Container(other))) : container(other) {}
|
||||
basic_ring_buffer(const basic_ring_buffer& other) = default;
|
||||
basic_ring_buffer(basic_ring_buffer&& other) = default;
|
||||
basic_ring_buffer& operator=(const basic_ring_buffer& other) = default;
|
||||
|
||||
Reference in new issue
Block a user