Skip to content

Commit 10442dd

Browse files
committed
Make ExecutionContext::Guard non-copyable/non-movable
1 parent f66f888 commit 10442dd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/fizzy/execution_context.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ class ExecutionContext
1818
ExecutionContext& m_execution_context; ///< Reference to the guarded execution context.
1919

2020
public:
21+
Guard(const Guard&) = delete;
22+
Guard(Guard&&) = delete;
23+
Guard& operator=(const Guard&) = delete;
24+
Guard& operator=(Guard&&) = delete;
25+
2126
explicit Guard(ExecutionContext& ctx) noexcept : m_execution_context{ctx}
2227
{
2328
++m_execution_context.depth;

0 commit comments

Comments
 (0)