Skip to content

Commit 4156a67

Browse files
committed
Fix const operator=
1 parent 1cfb7a6 commit 4156a67

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/regressions.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ class CopyAndMoveCountFunctor {
278278
CopyAndMoveCountFunctor& operator=(const CopyAndMoveCountFunctor& that) {
279279
copy_count = that.copy_count + 1;
280280
move_count = that.move_count;
281+
return *this;
281282
}
282283

283284
CopyAndMoveCountFunctor(CopyAndMoveCountFunctor&& that) {

0 commit comments

Comments
 (0)