diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-07-13 01:06:49 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-07-14 13:04:42 +0200 |
commit | bbfb02609ef2a93b8fa0e97a5e298805f82d4f37 (patch) | |
tree | e897ad29e72bf6e3c8e56fcb903cda5adff93de8 /test | |
parent | 7d309c5cdf61ec186046fc7d83e641853c8706ac (diff) |
w
Diffstat (limited to 'test')
-rw-r--r-- | test/handle.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/handle.cpp b/test/handle.cpp index 2b52b04e..563e56ae 100644 --- a/test/handle.cpp +++ b/test/handle.cpp @@ -8,7 +8,13 @@ namespace floormat { namespace { constexpr uint32_t start_index = 1024, page_size = 128; -struct Foo { int value = 0; }; + +struct Foo +{ + int value = 0; + ~Foo() { value = 0; } +}; + using Page = impl_handle::Page<Foo, page_size>; using Handle = impl_handle::Handle<Foo, page_size>; |