From be83abccf09a339f7356ff6ba6b89f5a46e6da57 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Sun, 21 Dec 2014 23:48:53 +0100 Subject: added additional constructor (initializer list) to ManagedContainer classes --- src/core/managed/ManagedContainer.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/core/managed') diff --git a/src/core/managed/ManagedContainer.hpp b/src/core/managed/ManagedContainer.hpp index 6bf1915..f58cb59 100644 --- a/src/core/managed/ManagedContainer.hpp +++ b/src/core/managed/ManagedContainer.hpp @@ -28,6 +28,7 @@ #define _OUSIA_MANAGED_CONTAINER_H_ #include +#include #include #include #include @@ -188,6 +189,18 @@ protected: public: + /** + * Constructor of the ManagedContainer class with no owner (will contain + * rooted entries). + */ + ManagedContainer() : owner(nullptr) {}; + + /** + * Constructor of the ManagedContainer class with an initializer list but + * no owner (will contain rooted entries). + */ + ManagedContainer(std::initializer_list l) : owner(nullptr), c(l) {}; + /** * Constructor of the ManagedContainer class. * -- cgit v1.2.3