Skip to content

Commit c61446b

Browse files
author
Dainis Jonitis
committed
operator = should return reference to self
1 parent 90f7b9c commit c61446b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/msgpack/sbuffer.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ class sbuffer {
7272

7373
other.m_size = other.m_alloc = 0;
7474
other.m_data = nullptr;
75+
76+
return *this;
7577
}
7678
#endif // !defined(MSGPACK_USE_CPP03)
7779

0 commit comments

Comments
 (0)