diff options
Diffstat (limited to 'include/cru/ui/mapper/Mapper.hpp')
-rw-r--r-- | include/cru/ui/mapper/Mapper.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/cru/ui/mapper/Mapper.hpp b/include/cru/ui/mapper/Mapper.hpp index d15b63aa..4e5499d0 100644 --- a/include/cru/ui/mapper/Mapper.hpp +++ b/include/cru/ui/mapper/Mapper.hpp @@ -5,6 +5,7 @@ #include "cru/common/Exception.hpp" #include "cru/xml/XmlNode.hpp" +#include <memory> #include <type_traits> #include <typeindex> #include <typeinfo> @@ -81,4 +82,7 @@ class CRU_UI_API BasicMapper : public MapperBase { virtual T DoMapFromString(String str) { return {}; } virtual T DoMapFromXml(xml::XmlElementNode* node) { return {}; } }; + +template <typename T> +using BasicRefMapper = BasicMapper<std::shared_ptr<T>>; } // namespace cru::ui::mapper |