Boost logo

Boost-Commit :

From: thomas.klimpel_at_[hidden]
Date: 2008-05-22 07:59:34


Author: klimpel
Date: 2008-05-22 07:59:34 EDT (Thu, 22 May 2008)
New Revision: 45648
URL: http://svn.boost.org/trac/boost/changeset/45648

Log:
Add Georg Baum's non-std::complex<> fixes.

[email to ublas list at 2007-05-29 14:50:01]

Text files modified:
   sandbox/boost/numeric/bindings/traits/type.hpp | 10 ++++++++++
   1 files changed, 10 insertions(+), 0 deletions(-)

Modified: sandbox/boost/numeric/bindings/traits/type.hpp
==============================================================================
--- sandbox/boost/numeric/bindings/traits/type.hpp (original)
+++ sandbox/boost/numeric/bindings/traits/type.hpp 2008-05-22 07:59:34 EDT (Thu, 22 May 2008)
@@ -8,8 +8,18 @@
 
 namespace boost { namespace numeric { namespace bindings { namespace traits {
 
+ /* The types for single and double precision complex numbers.
+ * You can use your own types if you define
+ * BOOST_NUMERIC_BINDINGS_USE_CUSTOM_COMPLEX_TYPE.
+ * Note that these types must have the same memory layout as the
+ * corresponding FORTRAN types.
+ * For that reason you can even use a different type in each translation
+ * unit and the resulting binary will still work!
+ */
+#ifndef BOOST_NUMERIC_BINDINGS_USE_CUSTOM_COMPLEX_TYPE
   typedef std::complex< float > complex_f ;
   typedef std::complex< double > complex_d ;
+#endif
 
   template <typename T>
   T real (std::complex<T> const& c) { return std::real (c); }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk