RFA: Vector.h: s/iosfwd/ios/

Jeffrey Oldham oldham at codesourcery.com
Wed May 23 19:41:11 UTC 2001


OK to commit?

When trying to compile src/CoordinateSystems/tests/CartesianTest1.cpp,
gcc 3.0 complained about this line from src/Tiny/Vector.h:

	std::ios::fmtflags incomingFormatFlags = out.flags();

This is resolved by replacing <iosfwd> by <ios>.

2001 May 23  Jeffrey D. Oldham  <oldham at codesourcery.com>

	* Vector.h: Replace <iosfwd> by <ios>.

Tested on	sequential Linux using gcc 3.0 by compiling CartesianTest1.cpp
Approved by	???you???

****************

Please be skeptical of this patch.  I do not understand why <ios> was
not the original choice.  Also, I have not extensively tested the
change.

Thanks,
Jeffrey D. Oldham
oldham at codesourcery.com
-------------- next part --------------
Index: Vector.h
===================================================================
RCS file: /home/pooma/Repository/r2/src/Tiny/Vector.h,v
retrieving revision 1.25
diff -c -p -r1.25 Vector.h
*** Vector.h	2000/04/28 00:04:02	1.25
--- Vector.h	2001/05/23 19:34:11
*************** class Full;
*** 56,62 ****
  #include "Tiny/VectorEngine.h"
  #include "Tiny/VectorElements.h"
  #include "Tiny/VectorOperators.h"
! #include <iosfwd>
  
  //-----------------------------------------------------------------------------
  // Forward Declarations:
--- 56,62 ----
  #include "Tiny/VectorEngine.h"
  #include "Tiny/VectorElements.h"
  #include "Tiny/VectorOperators.h"
! #include <ios>
  
  //-----------------------------------------------------------------------------
  // Forward Declarations:


More information about the pooma-dev mailing list