protected:
O &obj;
- DerivedObjectLoader(O &o): B(o), obj(o) { }
-
- template<typename T>
- DerivedObjectLoader(O &o, T &a): B(o, a), obj(o) { }
+ template<typename... Args>
+ DerivedObjectLoader(O &o, Args &&... a): B(o, std::forward<Args>(a)...), obj(o) { }
public:
O &get_object() const { return obj; }
typedef C Collection;
protected:
- C *coll;
+ C *coll = nullptr;
CollectionObjectLoader(O &o, C *c): ObjectLoader<O>(o), coll(c) { }