:404:17: required from ‘std::unique_ptr<_Tp, _Dp>::~unique_ptr() [with _Tp = {anonymous}::Bar; _Dp = {anonymous}::polymorphic_allocator_delete]’
/home/x-ray/projects/qt/cpp-masters/smartptrs/sankels_complete.cc:97:11: required from here
/home/x-ray/projects/qt/cpp-masters/smartptrs/sankels_complete.cc:84:19: warning: ‘void std::pmr::polymorphic_allocator<_Tp>::destroy(_Up*) [with _Up = {anonymous}::Bar; _Tp = {anonymous}::Bar]’ is deprecated: use 'allocator_traits::destroy' instead [-Wdeprecated-declarations]
84 | talloc.destroy(ptr);
| ~~~~~~~~~~~~~~^~~~~
Possible fix:
cpp-masters/smartptrs/sankels_complete.cc
Line 83 in 9c4af2e
Possible fix:
std::destroy_at(ptr);