logfunc: Fix deprecated std::auto_ptr for GCC 4.8.1+
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Tue, 30 Dec 2025 09:00:54 +0000 (10:00 +0100)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Wed, 31 Dec 2025 11:11:25 +0000 (12:11 +0100)
commit7ac52347b7885b0e12889fca40f22f106e901089
tree4204878f588c3888d6190eb7e0febc6eee339718
parent9c76c7818304be90bf0d7cdc1e31d9a049b5c371
logfunc: Fix deprecated std::auto_ptr for GCC 4.8.1+

Original warning:
src/logfunc.hpp:147:30: error: 'template<class> class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Werror=deprecated-declarations]

Use std::auto_ptr for GCC <= 4.7.x and std::unique_ptr for GCC >= 4.8.1.
GCC 4.8.1 was the first version with feature-complete C++11 support.

This still enables compilation on g++ 4.4.4.
src/logfunc.cpp
src/logfunc.hpp