diff options
| author | наб <nabijaczleweli@nabijaczleweli.xyz> | 2024-11-12 13:28:04 +0100 |
|---|---|---|
| committer | наб <nabijaczleweli@nabijaczleweli.xyz> | 2024-11-12 13:46:06 +0100 |
| commit | 78e503bc1d79bc4fc29bc9cbe1dfb68ae4d16acf (patch) | |
| tree | 67beaeec79a01ea97785bc5ad1476f3c2315e107 /apt-pkg/contrib/strutl.cc | |
| parent | c87f3bdd1790bb75447c2ec8f95e5e07bdce58d5 (diff) | |
Turn unique_ptr<decltype(fclose and free)> into real deleter types (warnings now, UB in C++20)
Diffstat (limited to 'apt-pkg/contrib/strutl.cc')
| -rw-r--r-- | apt-pkg/contrib/strutl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/contrib/strutl.cc b/apt-pkg/contrib/strutl.cc index 3689dc17a..ec61c7e2b 100644 --- a/apt-pkg/contrib/strutl.cc +++ b/apt-pkg/contrib/strutl.cc @@ -1421,7 +1421,7 @@ unsigned long RegexChoice(RxChoiceList *Rxs,const char **ListBegin, and to allow reordering of parameters */ bool iovprintf(std::ostream &out, const char *format, va_list &args, ssize_t &size) { - auto S = std::unique_ptr<char,decltype(&free)>{static_cast<char*>(malloc(size)), &free}; + auto S = std::unique_ptr<char,FreeDeleter>{static_cast<char*>(malloc(size))}; ssize_t const n = vsnprintf(S.get(), size, format, args); if (n > -1 && n < size) { out << S.get(); |
