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 4dcb981..a2a8720 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; }
 };