From: Mikko Rasa Date: Sat, 15 Jun 2013 20:10:12 +0000 (+0300) Subject: Add a two-argument constructor to DerivedObjectLoader X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=07d4c0e55aa9571c9f24cf39d134f1f7474fd7cb;p=libs%2Fdatafile.git Add a two-argument constructor to DerivedObjectLoader --- 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; } };