From a039c8ad36779903571419cb06cd052f8fc41512 Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 29 Mar 2022 17:40:04 +0200 Subject: refactor: use trailing return types --- src/DI/container.tpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/DI/container.tpp') diff --git a/src/DI/container.tpp b/src/DI/container.tpp index ed7f34f..2573223 100644 --- a/src/DI/container.tpp +++ b/src/DI/container.tpp @@ -32,13 +32,13 @@ void BindingBuilder::to_factory(Interface func) noexcept } template -BindingBuilder Container::bind() noexcept +auto Container::bind() noexcept -> BindingBuilder { return BindingBuilder(this); } template -std::shared_ptr Container::get() const noexcept +auto Container::get() const noexcept -> std::shared_ptr { ObjectType interface_type; @@ -57,7 +57,7 @@ std::shared_ptr Container::get() const noexcept } template -Interface Container::get() const noexcept +auto Container::get() const noexcept -> Interface { auto wrapper = std::dynamic_pointer_cast>( bindings.at(ObjectType())); -- cgit v1.2.3-18-g5258