BZDEV: tweak to blitz 19990310

From: Brendan Kehoe (brendan@cygnus.com)
Date: Wed Mar 31 1999 - 20:11:36 EST


Hi! FYI, I had to make this tweak for blitz++ to successfully compile with a
recent egcs snapshot.

B

1999-03-31 Brendan Kehoe <brendan@cygnus.com>

        * blitz/array/multi.h (BZ_DECLARE_MULTICOMPONENT_TYPE): Add
        wrappers to make sure the specialization is put into the blitz
        namespace.

Index: multi.h
===================================================================
RCS file: /cvs/cvsfiles/unsupported/g++-tests/blitz++/blitz/array/multi.h,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 multi.h
--- multi.h 1998/07/16 16:42:55 1.1.1.1
+++ multi.h 1999/04/01 01:10:50
@@ -45,11 +45,13 @@ struct multicomponent_traits<complex<T>
 // multicomponent types.
 
 #define BZ_DECLARE_MULTICOMPONENT_TYPE(T_tuple,T,N) \
+ BZ_NAMESPACE(blitz) \
   template<> \
   struct multicomponent_traits<T_tuple > { \
     typedef T T_element; \
     enum { numComponents = N }; \
- };
+ }; \
+ BZ_NAMESPACE_END
 
 BZ_NAMESPACE_END
 

-- 
Brendan Kehoe                                               brendan@cygnus.com
Cygnus Solutions, Sunnyvale, CA                                +1 408 542 9600

Web page: http://www.zen.org/~brendan/

--------------------- blitz-dev list -------------------------------- * To subscribe/unsubscribe: use the handy web form at http://oonumerics.org/blitz/lists.html



This archive was generated by hypermail 2b29 : Wed Feb 20 2002 - 04:30:09 EST