]> git.tdb.fi Git - libs/datafile.git/commitdiff
Add a two-argument constructor to DerivedObjectLoader
authorMikko Rasa <tdb@tdb.fi>
Sat, 15 Jun 2013 20:10:12 +0000 (23:10 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 15 Jun 2013 20:10:12 +0000 (23:10 +0300)
source/objectloader.h

index 4dcb981864e7c2d924a61dcbd44e552dfffa6cb0..a2a8720e840e6393f3e185950741fc6ba0df5729 100644 (file)
@@ -50,6 +50,9 @@ protected:
 
        DerivedObjectLoader(O &o): B(o), obj(o) { }
 
+       template<typename T>
+       DerivedObjectLoader(O &o, T &a): B(o, a), obj(o) { }
+
 public:
        O &get_object() const { return obj; }
 };