diff --git a/src/tl/tl/tlVariant.h b/src/tl/tl/tlVariant.h index 3821bea7e..404581c74 100644 --- a/src/tl/tl/tlVariant.h +++ b/src/tl/tl/tlVariant.h @@ -345,6 +345,16 @@ public: m_var.mp_user.cls = c; } + /** + * @brief Initialize the Variant with an explicit vector or variants + */ + template + Variant (const std::vector &list) + : m_type (t_list), m_string (0) + { + m_var.m_list = new std::vector (list); + } + /** * @brief Initialize the Variant with a list */