From d7cb2913c9d095360211c0b9b6aa9e5f8049c4e8 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Sat, 2 Mar 2019 17:22:27 +0100 Subject: [PATCH] Fixed a problem with the documentation generator. --- src/tl/tl/tlVariant.h | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 */