From 07d4c0e55aa9571c9f24cf39d134f1f7474fd7cb Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 15 Jun 2013 23:10:12 +0300 Subject: [PATCH] Add a two-argument constructor to DerivedObjectLoader --- source/objectloader.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/objectloader.h b/source/objectloader.h index 4dcb981..a2a8720 100644 --- a/source/objectloader.h +++ b/source/objectloader.h @@ -50,6 +50,9 @@ protected: DerivedObjectLoader(O &o): B(o), obj(o) { } + template + DerivedObjectLoader(O &o, T &a): B(o, a), obj(o) { } + public: O &get_object() const { return obj; } }; -- 2.45.2