Skip to content

Commit 9b70579

Browse files
committed
Prohibit copy constructor and assignment for StatusVector to avoid mistakes
1 parent f0c3339 commit 9b70579

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/common/StatusArg.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,10 @@ class StatusVector : public Base
226226
{
227227
return !(*this == arg);
228228
}
229+
230+
private:
231+
StatusVector(const StatusVector&); // Prohibit copy constructor
232+
void operator=(const StatusVector&); // Prohibit assignment
229233
};
230234

231235

0 commit comments

Comments
 (0)