diff options
Diffstat (limited to 'include/cru/ui/mapper/Mapper.hpp')
-rw-r--r-- | include/cru/ui/mapper/Mapper.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/cru/ui/mapper/Mapper.hpp b/include/cru/ui/mapper/Mapper.hpp index 4e5499d0..5febb26e 100644 --- a/include/cru/ui/mapper/Mapper.hpp +++ b/include/cru/ui/mapper/Mapper.hpp @@ -1,7 +1,7 @@ #pragma once - #include "../Base.hpp" +#include "cru/common/ClonablePtr.hpp" #include "cru/common/Exception.hpp" #include "cru/xml/XmlNode.hpp" @@ -85,4 +85,7 @@ class CRU_UI_API BasicMapper : public MapperBase { template <typename T> using BasicRefMapper = BasicMapper<std::shared_ptr<T>>; + +template <typename T> +using BasicPtrMapper = BasicMapper<ClonablePtr<T>>; } // namespace cru::ui::mapper |