We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1103ce8 commit 963302bCopy full SHA for 963302b
src/qvi-bbuff.cc
@@ -37,6 +37,14 @@ qvi_bbuff::~qvi_bbuff(void)
37
if (m_data) free(m_data);
38
}
39
40
+void
41
+qvi_bbuff::operator=(
42
+ const qvi_bbuff &src
43
+) {
44
+ const int rc = append(src.m_data, src.m_size);
45
+ if (qvi_unlikely(rc != QV_SUCCESS)) throw qvi_runtime_error();
46
+}
47
+
48
size_t
49
qvi_bbuff::size(void) const
50
{
src/qvi-bbuff.h
@@ -42,7 +42,7 @@ struct qvi_bbuff {
~qvi_bbuff(void);
/** Assignment operator. */
void
- operator=(const qvi_bbuff &src) = delete;
+ operator=(const qvi_bbuff &src);
/** Returns the size of the data stored in the byte buffer. */
size(void) const;
0 commit comments