summaryrefslogtreecommitdiffhomepage
path: root/test/bptr.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-07-14 10:48:42 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-07-14 13:04:43 +0200
commit5fe8eec392fa0568a03ad566a5b41c3b1df7a465 (patch)
tree828560d738492fbf7c58b9758e0858d54964c5c6 /test/bptr.cpp
parentb1143255469c992a6d8475a070af951b7d09c51d (diff)
w
Diffstat (limited to 'test/bptr.cpp')
-rw-r--r--test/bptr.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/test/bptr.cpp b/test/bptr.cpp
index 303bf027..ee254b68 100644
--- a/test/bptr.cpp
+++ b/test/bptr.cpp
@@ -8,17 +8,13 @@
namespace floormat {
namespace {
-struct Foo {};
+struct Foo : bptr_base {};
struct Bar : Foo {};
-struct Baz {};
+struct Baz : bptr_base {};
} // namespace
// NOLINTBEGIN(*-use-anonymous-namespace)
-template struct detail_borrowed_ptr::control_block_impl<Foo>;
-template struct detail_borrowed_ptr::control_block_impl<Bar>;
-template struct detail_borrowed_ptr::control_block_impl<Baz>;
-
template bool operator==(const bptr<Foo>&, const bptr<Foo>&) noexcept;
template bool operator==(const bptr<Bar>&, const bptr<Bar>&) noexcept;
template bool operator==(const bptr<Baz>&, const bptr<Baz>&) noexcept;
@@ -44,7 +40,7 @@ namespace {
int A_total = 0, A_alive = 0; // NOLINT
-struct A
+struct A : bptr_base
{
int val, serial;
explicit A(int val) : val{val}, serial{++A_total} { ++A_alive; }