aboutsummaryrefslogtreecommitdiff
path: root/src/DI/value_functor.tpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-04-24 17:13:52 +0200
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:58 +0200
commitdb6edcd473a684420e9a7611b24462df21165c1b (patch)
tree9646bdb4f5f6e339a0a01873b44e0b185476ce56 /src/DI/value_functor.tpp
parentb36d072ad7a7b9c6e30fcb25d6bbb001a8393468 (diff)
style: improve function and brace styling
Diffstat (limited to 'src/DI/value_functor.tpp')
-rw-r--r--src/DI/value_functor.tpp4
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));