diff options
Diffstat (limited to 'src/DI/value_functor.tpp')
-rw-r--r-- | src/DI/value_functor.tpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/DI/value_functor.tpp b/src/DI/value_functor.tpp index 3665f18..a41d1c2 100644 --- a/src/DI/value_functor.tpp +++ b/src/DI/value_functor.tpp @@ -39,7 +39,9 @@ VALUE_FUNCTOR::ValueFunctor(Function &&function, const Allocator &allocator) using Destructor = AllocDestructor<FunctorAlloc>; auto hold = std::unique_ptr<TargetFunctor, Destructor>( - functor_alloc.allocate(1), Destructor(functor_alloc, 1)); + functor_alloc.allocate(1), + Destructor(functor_alloc, 1) + ); ::new (static_cast<void *>(hold.get())) Functor(std::forward<Function>(function), Allocator(allocator)); |