aboutsummaryrefslogtreecommitdiff
path: root/unit_tests/shared.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--unit_tests/shared.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/unit_tests/shared.h b/unit_tests/shared.h
index de7938e..c7cdba5 100644
--- a/unit_tests/shared.h
+++ b/unit_tests/shared.h
@@ -18,7 +18,15 @@ class LuaState
18 } 18 }
19 LuaState(WithBaseLibs withBaseLibs_, WithFixture withFixture_); 19 LuaState(WithBaseLibs withBaseLibs_, WithFixture withFixture_);
20 20
21 LuaState(LuaState&& rhs_) = default; 21 LuaState(LuaState const&) = delete;
22 LuaState(LuaState&& rhs_) noexcept
23 : L{ std::exchange(rhs_.L, nullptr) }
24 {
25 }
26 LuaState& operator=(LuaState const&) = delete;
27 LuaState& operator=(LuaState&& rhs_) noexcept {
28 L = std::exchange(rhs_.L, nullptr);
29 }
22 30
23 public: 31 public:
24 32