home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / stl453up.zip / stl453fx / test / eh / TestClass.cpp < prev    next >
C/C++ Source or Header  |  2002-04-29  |  1KB  |  36 lines

  1. /***********************************************************************************
  2.     TestClass.cpp
  3.     
  4.  * Copyright (c) 1997
  5.  * Mark of the Unicorn, Inc.
  6.  *
  7.  * Permission to use, copy, modify, distribute and sell this software
  8.  * and its documentation for any purpose is hereby granted without fee,
  9.  * provided that the above copyright notice appear in all copies and
  10.  * that both that copyright notice and this permission notice appear
  11.  * in supporting documentation.  Mark of the Unicorn makes no
  12.  * representations about the suitability of this software for any
  13.  * purpose.  It is provided "as is" without express or implied warranty.
  14.  
  15. ***********************************************************************************/
  16. #include "TestClass.h"
  17.  
  18. # if defined (EH_NEW_IOSTREAMS)
  19. #include <iostream>
  20. # else
  21. #include <iostream.h>
  22. # endif
  23.  
  24. # ifdef EH_NEW_IOSTREAMS
  25. EH_STD::ostream& 
  26. operator << (EH_STD::ostream& s, 
  27.          const TestClass& t) { 
  28.   return s<<t.value(); 
  29.  
  30. # else
  31. ostream& 
  32. operator << (ostream& s, const TestClass& t) { return s<<t.value(); } 
  33. # endif
  34.  
  35.