util/DeleteDisposer: add `const` and `noexcept`
This commit is contained in:
parent
523519182a
commit
32dd9704ce
|
@ -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;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue