aboutsummaryrefslogtreecommitdiff
path: root/src/DI/copyable_functor.tpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/DI/copyable_functor.tpp')
-rw-r--r--src/DI/copyable_functor.tpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/DI/copyable_functor.tpp b/src/DI/copyable_functor.tpp
index 9895397..d8da3bb 100644
--- a/src/DI/copyable_functor.tpp
+++ b/src/DI/copyable_functor.tpp
@@ -50,8 +50,10 @@ auto COPYABLE_FUNCTOR::clone() const -> ICopyableFunctor<Return(Args...)> *
using Destructor = AllocDestructor<AllocHelper>;
- auto hold = std::unique_ptr<CopyableFunctor, Destructor>(alloc_helper.allocate(1),
- Destructor(alloc_helper, 1));
+ auto hold = std::unique_ptr<CopyableFunctor, Destructor>(
+ alloc_helper.allocate(1),
+ Destructor(alloc_helper, 1)
+ );
::new (static_cast<void *>(hold.get()))
CopyableFunctor(_functor.target(), Allocator(alloc_helper));