util/IntrusiveList: add enum LinkMode

Compile-time code simplification.
This commit is contained in:
Max Kellermann
2022-11-12 08:52:58 +01:00
parent 3023816491
commit fb5d77158a
14 changed files with 132 additions and 81 deletions

View File

@@ -27,7 +27,7 @@
template<typename T>
class CancellablePointer
: public IntrusiveListHook
: public IntrusiveListHook<>
{
public:
typedef T *pointer;

View File

@@ -79,7 +79,7 @@ class UPnPDeviceDirectory final : UpnpCallback {
};
class Downloader final
: public IntrusiveListHook, CurlResponseHandler
: public IntrusiveListHook<>, CurlResponseHandler
{
InjectEvent defer_start_event;