diff --git a/test_secure_buffer.cpp b/test_secure_buffer.cpp index 9b5ea34..a2a8dad 100644 --- a/test_secure_buffer.cpp +++ b/test_secure_buffer.cpp @@ -230,6 +230,9 @@ class ScopedPageStateAllocationLimit { ScopedPageStateAllocationLimit() noexcept : saved_limit_(PageStateAllocationControl::successful_allocations_before_failure) {} + ScopedPageStateAllocationLimit(const ScopedPageStateAllocationLimit&) = delete; + ScopedPageStateAllocationLimit& operator=(const ScopedPageStateAllocationLimit&) = delete; + ~ScopedPageStateAllocationLimit() { PageStateAllocationControl::successful_allocations_before_failure = saved_limit_; }