Skip to content

Commit

Permalink
fix(RingBuffer): remove C++11 delegating constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
itas109 committed Aug 4, 2024
1 parent 99f3f1c commit afa3772
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/CSerialPort/ibuffer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ class RingBuffer : public Buffer<T>
*
*/
RingBuffer()
: RingBuffer(4096)
: m_head(0)
, m_tail(0)
, m_maxBufferSize(4096) ///< must power of two
, m_maxMirrorBufferIndex(2 * m_maxBufferSize - 1)
, m_buffer(new T[m_maxBufferSize])
{
}

Expand Down

0 comments on commit afa3772

Please sign in to comment.