git: 82e034370621 - stable/14 - lutok: Switch from std::auto_ptr<> to std::unique_ptr<>
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 29 Jan 2026 15:39:47 UTC
The branch stable/14 has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=82e034370621d7fdb52a6a282458474aa9af66c6
commit 82e034370621d7fdb52a6a282458474aa9af66c6
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2025-04-16 14:09:18 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2026-01-29 15:15:29 +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
(cherry picked from commit 25f2634a1f4b27c9804b705e85bc104a2eac67b9)
---
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 656cf7850f2e..1ac88cfa06b3 100644
--- a/lib/liblutok/Makefile
+++ b/lib/liblutok/Makefile
@@ -19,8 +19,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>