lutok: Switch from std::auto_ptr<> to std::unique_ptr<>

This mirrors upstream commit bd5904144c9778a07685f3e4efa6ef011a5480ec.

Reviewed by:	igoro, imp, emaste
Differential Revision:	https://reviews.freebsd.org/D49788
This commit is contained in:
John Baldwin 2025-04-16 10:09:18 -04:00
parent f1a94c5552
commit 25f2634a1f
2 changed files with 1 additions and 5 deletions

View file

@ -72,7 +72,7 @@ class stack_cleaner {
struct impl;
/// Pointer to the shared internal implementation.
std::auto_ptr< impl > _pimpl;
std::unique_ptr< impl > _pimpl;
/// Disallow copies.
stack_cleaner(const stack_cleaner&);

View file

@ -18,8 +18,4 @@ CFLAGS+= -I${SRCTOP}/contrib/lutok/include \
WARNS?= 3
SHLIB_MAJOR= 0
# lutok uses auto_ptr
CFLAGS+= -Wno-deprecated-declarations
CXXSTD= c++11
.include <bsd.lib.mk>