aboutsummaryrefslogtreecommitdiff
path: root/src/DI/auto_wirable.tpp
blob: 6c0d1113999db56f7e419414ee16251e432e624a (plain)
1
2
3
4
5
6
7
8
9
10
#pragma once

#include "auto_wirable.hpp"

template <class Interface, class ObjectImpl, class... Dependencies>
std::shared_ptr<Interface>
AutoWirable<Interface, ObjectImpl, Dependencies...>::resolve(const Container &container)
{
	return std::make_shared<ObjectImpl>(container.get<Dependencies>()...);
}