diff --git a/alib2abstraction/src/factory/NormalizeFactory.hpp b/alib2abstraction/src/factory/NormalizeFactory.hpp index 61bcf57eae5d5e039bc34936784aea2538306435..500fec4993bf0da4ad502b5223df273245d0eeb1 100644 --- a/alib2abstraction/src/factory/NormalizeFactory.hpp +++ b/alib2abstraction/src/factory/NormalizeFactory.hpp @@ -68,7 +68,7 @@ public: if constexpr ( std::is_same_v < DesignatedType, object::Object > ) { return std::move ( arg ); } else if constexpr ( is_variant_v < DesignatedType > ) { - std::unique_ptr < core::type_details_base > type = core::type_util < DesignatedType >::type ( arg ); + std::unique_ptr < core::type_details_base > type = core::type_util < object::Object >::type ( arg ); return DenormalizeVariantHelper < DesignatedType >::denormalize ( std::move ( arg ), std::move ( type ) ); } else { using normalizedType = typename std::decay_t < typename std::invoke_result_t < decltype ( core::type_util < DesignatedType >::normalize ), DesignatedType && > >;