From c01880ba9cfdeb2677eee9b92ee10507070eb86e Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 19 Oct 2010 01:12:57 -0400 Subject: Support std::complex. --- src/vZ/Traits.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src') diff --git a/src/vZ/Traits.hpp b/src/vZ/Traits.hpp index 2c1496e..1c8f082 100644 --- a/src/vZ/Traits.hpp +++ b/src/vZ/Traits.hpp @@ -21,6 +21,8 @@ #ifndef VZ_TRAITS_HPP #define VZ_TRAITS_HPP +#include + namespace vZ { // Traits class @@ -36,6 +38,17 @@ namespace vZ private: Traits(); }; + + // Specialization for std::complex + template + class Traits > + { + public: + typedef typename Traits::Scalar Scalar; + + private: + Traits(); + }; } #endif // VZ_TRAITS_HPP -- cgit v1.2.3