aboutsummaryrefslogtreecommitdiff
path: root/src/DI/object_wrapper.tpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/DI/object_wrapper.tpp')
-rw-r--r--src/DI/object_wrapper.tpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/DI/object_wrapper.tpp b/src/DI/object_wrapper.tpp
new file mode 100644
index 0000000..7efefc4
--- /dev/null
+++ b/src/DI/object_wrapper.tpp
@@ -0,0 +1,9 @@
+#pragma once
+
+#include "object_wrapper.hpp"
+
+template <class Interface, class ObjectImpl>
+std::shared_ptr<Interface> ObjectWrapper<Interface, ObjectImpl>::get() const
+{
+ return ObjectImpl::resolve(_container);
+}