fix ring-buffer for simple constexpr usage

This commit is contained in:
Ferdinand Bachmann
2020-04-18 13:46:17 +02:00
parent 43150587a8
commit 47f3737fb4
3 changed files with 14 additions and 6 deletions

View File

@ -2,6 +2,7 @@
#define _RING_BUFFER_H
#include <array>
#include <utility>
#include <ring-buffer-config.h>
#include <ring-buffer-iterator.h>
@ -20,6 +21,7 @@ private:
public:
basic_ring_buffer() = default;
~basic_ring_buffer() = default;
CONSTEXPR basic_ring_buffer(const 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;