aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/extensible.h2
-rw-r--r--include/inspircd.h2
-rw-r--r--include/stdalgo.h16
3 files changed, 4 insertions, 16 deletions
diff --git a/include/extensible.h b/include/extensible.h
index 4a9c980ca..94f3e7c28 100644
--- a/include/extensible.h
+++ b/include/extensible.h
@@ -185,7 +185,7 @@ class CoreExport ExtensionManager
};
/** Represents a simple ExtensionItem. */
-template <typename T, typename Del = stdalgo::defaultdeleter<T> >
+template <typename T, typename Del = std::default_delete<T>>
class SimpleExtItem : public ExtensionItem
{
public:
diff --git a/include/inspircd.h b/include/inspircd.h
index 30f4d3a3a..d3ddee776 100644
--- a/include/inspircd.h
+++ b/include/inspircd.h
@@ -564,7 +564,7 @@ class CoreExport InspIRCd
ENTRYPOINT;
-inline void stdalgo::culldeleter::operator()(classbase* item)
+inline void stdalgo::cull_delete::operator()(classbase* item)
{
if (item)
ServerInstance->GlobalCulls.AddItem(item);
diff --git a/include/stdalgo.h b/include/stdalgo.h
index abf7fab46..cf267798b 100644
--- a/include/stdalgo.h
+++ b/include/stdalgo.h
@@ -152,22 +152,10 @@ namespace stdalgo
}
/**
- * Deleter that uses operator delete to delete the item
- */
- template <typename T>
- struct defaultdeleter
- {
- void operator()(T* o)
- {
- delete o;
- }
- };
-
- /**
* Deleter that adds the item to the cull list, that is, queues it for
* deletion at the end of the current mainloop iteration
*/
- struct culldeleter
+ struct cull_delete
{
void operator()(classbase* item);
};
@@ -179,7 +167,7 @@ namespace stdalgo
template <template<typename, typename> class Cont, typename T, typename Alloc>
inline void delete_all(const Cont<T*, Alloc>& cont)
{
- std::for_each(cont.begin(), cont.end(), defaultdeleter<T>());
+ std::for_each(cont.begin(), cont.end(), std::default_delete<T>());
}
/** Deletes a object and zeroes the memory location that pointed to it.