summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/dom/Managed.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/dom/Managed.hpp b/src/core/dom/Managed.hpp
index fc4d489..4c8f951 100644
--- a/src/core/dom/Managed.hpp
+++ b/src/core/dom/Managed.hpp
@@ -28,6 +28,8 @@
namespace ousia {
namespace dom {
+// TODO: Implement clone, getReferenced and getReferencing
+
class Managed;
template <class T>
@@ -324,7 +326,7 @@ protected:
friend class Rooted<T>;
friend class Owned<T>;
- static_assert(std::is_base_of<Managed, T>::value, "T must be a Managed");
+ static_assert(std::is_convertible<T*, Managed*>::value, "T must be a Managed");
/**
* Reference to the represented managed object.