From 956c6b97dcd241b79a2f7fdfba30994a21c72a01 Mon Sep 17 00:00:00 2001 From: Mateusz Jakub Fila Date: Fri, 20 Sep 2024 16:48:28 +0200 Subject: [PATCH] use enable_if in interface constructor --- python/templates/Interface.h.jinja2 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/templates/Interface.h.jinja2 b/python/templates/Interface.h.jinja2 index ef96f601d..f3f23cd60 100644 --- a/python/templates/Interface.h.jinja2 +++ b/python/templates/Interface.h.jinja2 @@ -89,10 +89,9 @@ class {{ class.bare_type }} { std::unique_ptr m_self{nullptr}; public: - template + template>> {{ class.bare_type }}(ValueT value) : m_self(std::make_unique>>(value)) { - static_assert(isInitializableFrom, "{{ class.bare_type }} can only be initialized with one of the following types (and their Mutable counter parts): {{ Types | join(", ") }}"); } {{ class.bare_type }}(const {{ class.bare_type }}& other) :