util/DeleteDisposer: add `const` and `noexcept`

This commit is contained in:
Max Kellermann 2024-09-02 21:16:02 +02:00 committed by Max Kellermann
parent 523519182a
commit 32dd9704ce
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@
class DeleteDisposer { class DeleteDisposer {
public: public:
template<typename T> template<typename T>
void operator()(T *t) { void operator()(T *t) const noexcept {
delete t; delete t;
} }
}; };