diff options
author | swhite <schnetter@cct.lsu.edu> | 2005-08-29 21:31:00 +0000 |
---|---|---|
committer | swhite <schnetter@cct.lsu.edu> | 2005-08-29 21:31:00 +0000 |
commit | 6c4616e0d4e611cb74ea45ea83c694afc26450df (patch) | |
tree | 6ac0d747fb77222be55ff98478d65c309e905894 | |
parent | 3b8a4fbb15f99fed0865c51b970d899a7d0c4fcf (diff) |
CarpetLib: forward-declare output operator
Made to compile under g++ 4.1.0, which is fussy about declaration
of template members.
darcs-hash:20050829213105-32473-7c353b607f09ae254eb7327b32deda6045539fc5.gz
-rw-r--r-- | Carpet/CarpetLib/src/data.hh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Carpet/CarpetLib/src/data.hh b/Carpet/CarpetLib/src/data.hh index 8993e4d43..950222066 100644 --- a/Carpet/CarpetLib/src/data.hh +++ b/Carpet/CarpetLib/src/data.hh @@ -19,6 +19,12 @@ using namespace std; #include <iosfwd> +template<typename T> +class data; + +template<typename T> +ostream & operator << ( ostream & os, const data<T> & d ); + // A distributed multi-dimensional array template<typename T> class data: public gdata @@ -174,9 +180,6 @@ private: friend ostream & operator << <T> ( ostream & os, const data<T> & d ); }; -template<typename T> -ostream & operator << ( ostream & os, const data<T> & d ); - // Declare a specialisation |