wrapper fix

This commit is contained in:
AndreaRigoni
2026-04-16 11:05:26 +00:00
parent 865282aefc
commit 83af9a180f
3 changed files with 55 additions and 1 deletions

View File

@@ -67,6 +67,12 @@ public:
static uLib::ObjectRegistrar<className> ULIB_REG_CONCAT( \
g_ObjectRegistrar_, __LINE__)(registeredName);
// Object Wrapper
template <typename T> class ObjectWrapper {
public:
ObjectWrapper(const std::string &className) {
@@ -75,6 +81,7 @@ public:
}
ObjectWrapper(T *model) : m_model(model) {}
ObjectWrapper(T &model) : m_model(model) {}
template <typename U = T,
typename = std::enable_if_t<std::is_default_constructible_v<U>>>