From 2c5e10c9e52502c4a66457ed6d2ff7f43976e4d7 Mon Sep 17 00:00:00 2001 From: Drew Hubley <96780897+spectre-ns@users.noreply.github.com> Date: Sun, 10 Dec 2023 07:51:17 -0400 Subject: [PATCH] Update xtype_traits.hpp --- include/xtl/xtype_traits.hpp | 6 ++++++ 1 file changed, 6 insertions(+) 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'. */