You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that while the type of m_data.ptr is indeed CharT *, that of &m_data.buffer is CharT **, because the "name" of an array decays to a pointer to it's 0th element.
Either you want m_data.buffer or you want &m_data.buffer[0] (the latter seems be the idiom in some C++ code, for instance in A Tour of C++ By Bjarne himself).
I hope this error does not exist in the source code.
The text was updated successfully, but these errors were encountered:
All over the
README.md
file, there is code like :Note that while the type of
m_data.ptr
is indeedCharT *
, that of&m_data.buffer
isCharT **
, because the "name" of an array decays to a pointer to it's 0th element.Either you want
m_data.buffer
or you want&m_data.buffer[0]
(the latter seems be the idiom in some C++ code, for instance in A Tour of C++ By Bjarne himself).I hope this error does not exist in the source code.
The text was updated successfully, but these errors were encountered: