@@ -80,13 +80,13 @@ struct my_allocator_with_custom_destroy
8080
8181 static bool g_state;
8282
83- _CCCL_HOST my_allocator_with_custom_destroy ();
83+ _CCCL_HOST my_allocator_with_custom_destroy () {} // NOLINT(modernize-use-equals-default)
8484
8585 _CCCL_HOST my_allocator_with_custom_destroy (const my_allocator_with_custom_destroy& other)
8686 : use_me_to_alloc(other.use_me_to_alloc)
8787 {}
8888
89- _CCCL_HOST ~my_allocator_with_custom_destroy ();
89+ _CCCL_HOST ~my_allocator_with_custom_destroy () {} // NOLINT(modernize-use-equals-default)
9090
9191 _CCCL_HOST_DEVICE void destroy (T*) noexcept
9292 {
@@ -121,12 +121,6 @@ struct my_allocator_with_custom_destroy
121121 std::allocator<T> use_me_to_alloc;
122122};
123123
124- template <typename T>
125- my_allocator_with_custom_destroy<T>::my_allocator_with_custom_destroy() = default ;
126-
127- template <typename T>
128- my_allocator_with_custom_destroy<T>::~my_allocator_with_custom_destroy () = default ;
129-
130124template <typename T>
131125bool my_allocator_with_custom_destroy<T>::g_state = false ;
132126
@@ -155,13 +149,13 @@ struct my_minimal_allocator
155149 using reference = T&;
156150 using const_reference = const T&;
157151
158- _CCCL_HOST my_minimal_allocator ();
152+ _CCCL_HOST my_minimal_allocator () {} // NOLINT(modernize-use-equals-default)
159153
160154 _CCCL_HOST my_minimal_allocator (const my_minimal_allocator& other)
161155 : use_me_to_alloc(other.use_me_to_alloc)
162156 {}
163157
164- _CCCL_HOST ~my_minimal_allocator ();
158+ _CCCL_HOST ~my_minimal_allocator () {} // NOLINT(modernize-use-equals-default)
165159
166160 value_type* allocate (std::ptrdiff_t n)
167161 {
@@ -176,12 +170,6 @@ struct my_minimal_allocator
176170 std::allocator<T> use_me_to_alloc;
177171};
178172
179- template <typename T>
180- my_minimal_allocator<T>::my_minimal_allocator() = default ;
181-
182- template <typename T>
183- my_minimal_allocator<T>::~my_minimal_allocator () = default ;
184-
185173template <typename T>
186174void TestAllocatorMinimal (size_t n)
187175{
0 commit comments