diff --git a/include/xtl/xtype_traits.hpp b/include/xtl/xtype_traits.hpp index 6558be8..07a04b3 100644 --- a/include/xtl/xtype_traits.hpp +++ b/include/xtl/xtype_traits.hpp @@ -136,6 +136,12 @@ namespace xtl using type = typename promote_type::type>::type; }; + template + struct promote_type, std::complex, REST...> + { + using type = std::complex::type>; + }; + /** * Abbreviation of 'typename promote_type::type'. */