diff options
author | eschnett <> | 2001-03-27 20:26:00 +0000 |
---|---|---|
committer | eschnett <> | 2001-03-27 20:26:00 +0000 |
commit | 2d32a865addbab35ad5c7d30b0a01733fc505383 (patch) | |
tree | 1d57cbc8731a1aabc779da152cdeddb9952b608f /Carpet/CarpetLib/src/bbox.hh | |
parent | 83c95de054b2fea2cee55afe0836accf078b4005 (diff) |
Made Carpet compile on IRIX.
darcs-hash:20010327202631-f6438-d70466b15bf2224f3ce20968622c77a3cca37a73.gz
Diffstat (limited to 'Carpet/CarpetLib/src/bbox.hh')
-rw-r--r-- | Carpet/CarpetLib/src/bbox.hh | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/Carpet/CarpetLib/src/bbox.hh b/Carpet/CarpetLib/src/bbox.hh index 396a9c5ca..160748f27 100644 --- a/Carpet/CarpetLib/src/bbox.hh +++ b/Carpet/CarpetLib/src/bbox.hh @@ -5,7 +5,7 @@ copyright : (C) 2000 by Erik Schnetter email : schnetter@astro.psu.edu - $Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetLib/src/bbox.hh,v 1.7 2001/03/22 18:42:05 eschnett Exp $ + $Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetLib/src/bbox.hh,v 1.8 2001/03/27 22:26:31 eschnett Exp $ ***************************************************************************/ @@ -30,7 +30,7 @@ using namespace std; -// Forward definition +// Forward declaration template<class T, int D> class bbox; // Output @@ -117,11 +117,20 @@ public: iterator end () const; // Output - friend ostream& operator<< <>(ostream& os, const bbox& s); + void output (ostream& os) const; }; +// Output +template<class T,int D> +inline ostream& operator<< (ostream& os, const bbox<T,D>& b) { + b.output(os); + return os; +} + + + #if defined(TMPL_IMPLICIT) # include "bbox.cc" #endif |