@@ -87,7 +87,7 @@ namespace detail
87
87
};
88
88
};
89
89
90
- template < typename Delegate, typename R = void , bool ISQUEUE = false , unsigned QUEUE_CAPACITY = 32 , typename ... P>
90
+ template < typename Delegate, typename R = void , bool ISQUEUE = false , size_t QUEUE_CAPACITY = 32 , typename ... P>
91
91
class MultiDelegatePImpl
92
92
{
93
93
public:
@@ -176,7 +176,7 @@ namespace detail
176
176
Node_t* first = nullptr ;
177
177
Node_t* last = nullptr ;
178
178
Node_t* unused = nullptr ;
179
- unsigned nodeCount = 0 ;
179
+ size_t nodeCount = 0 ;
180
180
181
181
// Returns a pointer to an unused Node_t,
182
182
// or if none are available allocates a new one,
@@ -370,7 +370,7 @@ namespace detail
370
370
}
371
371
};
372
372
373
- template < typename Delegate, typename R = void , bool ISQUEUE = false , unsigned QUEUE_CAPACITY = 32 >
373
+ template < typename Delegate, typename R = void , bool ISQUEUE = false , size_t QUEUE_CAPACITY = 32 >
374
374
class MultiDelegateImpl : public MultiDelegatePImpl <Delegate, R, ISQUEUE, QUEUE_CAPACITY>
375
375
{
376
376
protected:
@@ -456,16 +456,16 @@ namespace detail
456
456
}
457
457
};
458
458
459
- template < typename Delegate, typename R, bool ISQUEUE, unsigned QUEUE_CAPACITY, typename ... P> class MultiDelegate ;
459
+ template < typename Delegate, typename R, bool ISQUEUE, size_t QUEUE_CAPACITY, typename ... P> class MultiDelegate ;
460
460
461
- template < typename Delegate, typename R, bool ISQUEUE, unsigned QUEUE_CAPACITY, typename ... P>
461
+ template < typename Delegate, typename R, bool ISQUEUE, size_t QUEUE_CAPACITY, typename ... P>
462
462
class MultiDelegate <Delegate, R(P...), ISQUEUE, QUEUE_CAPACITY> : public MultiDelegatePImpl<Delegate, R, ISQUEUE, QUEUE_CAPACITY, P...>
463
463
{
464
464
public:
465
465
using MultiDelegatePImpl<Delegate, R, ISQUEUE, QUEUE_CAPACITY, P...>::MultiDelegatePImpl;
466
466
};
467
467
468
- template < typename Delegate, typename R, bool ISQUEUE, unsigned QUEUE_CAPACITY>
468
+ template < typename Delegate, typename R, bool ISQUEUE, size_t QUEUE_CAPACITY>
469
469
class MultiDelegate <Delegate, R(), ISQUEUE, QUEUE_CAPACITY> : public MultiDelegateImpl<Delegate, R, ISQUEUE, QUEUE_CAPACITY>
470
470
{
471
471
public:
@@ -493,7 +493,7 @@ It is designed to be used with Delegate, the efficient runtime wrapper for C fun
493
493
allocates from the heap. Unused items are not returned to the heap, but are managed by the MultiDelegate
494
494
instance during its own lifetime for efficiency.
495
495
*/
496
- template < typename Delegate, bool ISQUEUE = false , unsigned QUEUE_CAPACITY = 32 >
496
+ template < typename Delegate, bool ISQUEUE = false , size_t QUEUE_CAPACITY = 32 >
497
497
class MultiDelegate : public detail ::MultiDelegate<Delegate, typename Delegate::target_type, ISQUEUE, QUEUE_CAPACITY>
498
498
{
499
499
public:
0 commit comments