Ringbuffer emplace_back fixes bad return
This commit is contained in:
parent
b4949a6f07
commit
3af6a8d42a
@ -164,7 +164,7 @@ public:
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
new (&*_tail)T(std::forward<Args>(args)...);
|
new (&*_tail)T(std::forward<Args>(args)...);
|
||||||
return *(_tail++);
|
++_tail;
|
||||||
}
|
}
|
||||||
|
|
||||||
void pop_front()
|
void pop_front()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user