Skip to content

Commit df0172d

Browse files
committed
delete finally copy ctor/assignment op
1 parent 2c77d17 commit df0172d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xpti/include/xpti/xpti_trace_framework.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,8 @@ class SpinLock {
353353
struct finally {
354354
std::function<void()> MFunc;
355355

356-
finally(const finally &) = default;
357-
finally &operator=(const finally &) = default;
356+
finally(const finally &) = delete;
357+
finally &operator=(const finally &) = delete;
358358
~finally() {
359359
if (xptiTraceEnabled())
360360
MFunc();

0 commit comments

Comments
 (0)