diff options
Diffstat (limited to 'src/vZ')
-rw-r--r-- | src/vZ/Traits.hpp | 13 |
1 files changed, 13 insertions, 0 deletions
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 <complex> + namespace vZ { // Traits class @@ -36,6 +38,17 @@ namespace vZ private: Traits(); }; + + // Specialization for std::complex<T> + template <typename T> + class Traits<std::complex<T> > + { + public: + typedef typename Traits<T>::Scalar Scalar; + + private: + Traits(); + }; } #endif // VZ_TRAITS_HPP |