git: 25f2634a1f4b - main - lutok: Switch from std::auto_ptr<> to std::unique_ptr<>

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Wed, 16 Apr 2025 14:12:01 UTC
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=25f2634a1f4b27c9804b705e85bc104a2eac67b9

commit 25f2634a1f4b27c9804b705e85bc104a2eac67b9
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2025-04-16 14:09:18 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2025-04-16 14:09:18 +0000

    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
---
 contrib/lutok/stack_cleaner.hpp | 2 +-
 lib/liblutok/Makefile           | 4 ----
 2 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/contrib/lutok/stack_cleaner.hpp b/contrib/lutok/stack_cleaner.hpp
index cd3e1468656f..3e3a8edc3b6f 100644
--- a/contrib/lutok/stack_cleaner.hpp
+++ b/contrib/lutok/stack_cleaner.hpp
@@ -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&);
diff --git a/lib/liblutok/Makefile b/lib/liblutok/Makefile
index abb6ecd13ad4..08737afbb61a 100644
--- a/lib/liblutok/Makefile
+++ b/lib/liblutok/Makefile
@@ -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>