Update circular_q.h

This commit is contained in:
gabime 2019-09-05 00:46:08 +03:00
parent 98ec35cee1
commit 28845b96bd

View File

@ -11,6 +11,12 @@ namespace spdlog {
template<typename T>
class circular_q
{
size_t max_items_ = 0;
typename std::vector<T>::size_type head_ = 0;
typename std::vector<T>::size_type tail_ = 0;
size_t overrun_counter_ = 0;
std::vector<T> v_;
public:
using item_type = T;
@ -85,13 +91,6 @@ namespace spdlog {
}
private:
size_t max_items_ = 0;
typename std::vector<T>::size_type head_ = 0;
typename std::vector<T>::size_type tail_ = 0;
size_t overrun_counter_ = 0;
std::vector<T> v_;
void copy_moveable(circular_q&& other) SPDLOG_NOEXCEPT
{
max_items_ = other.max_items_;