From 212ee73e4d810679388cf988f125c3e86c5806b3 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Thu, 13 Nov 2014 13:46:03 +0100 Subject: fixed static type assertion in the Handle class for incomplete types --- src/core/dom/Managed.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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 @@ -324,7 +326,7 @@ protected: friend class Rooted; friend class Owned; - static_assert(std::is_base_of::value, "T must be a Managed"); + static_assert(std::is_convertible::value, "T must be a Managed"); /** * Reference to the represented managed object. -- cgit v1.2.3