[pooma-dev] RFA: Vector.h: s/iosfwd/ios/

Jeffrey Oldham oldham at codesourcery.com
Thu May 24 00:21:50 UTC 2001


	I revise the request to modify Tiny/Vector.h by adding the
same change to Tiny/TinyMatrix.h.

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>.  A similar problem in
TinyMatrix.h was demonstrated by
src/Utilities/LINUXgcc/delete_test1.cpp.

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

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

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

I do not understand why <ios> was not the original choice.

Thanks,
Jeffrey D. Oldham
oldham at codesourcery.com
-------------- next part --------------
Index: TinyMatrix.h
===================================================================
RCS file: /home/pooma/Repository/r2/src/Tiny/TinyMatrix.h,v
retrieving revision 1.11
diff -c -p -r1.11 TinyMatrix.h
*** TinyMatrix.h	2001/04/05 09:34:47	1.11
--- TinyMatrix.h	2001/05/24 00:18:15
*************** class Full;
*** 56,62 ****
  #include "Tiny/TinyMatrixEngine.h"
  #include "Tiny/TinyMatrixElements.h"
  #include "Tiny/TinyMatrixOperators.h"
! #include <iosfwd>
  
  //-----------------------------------------------------------------------------
  // Forward Declarations:
--- 56,62 ----
  #include "Tiny/TinyMatrixEngine.h"
  #include "Tiny/TinyMatrixElements.h"
  #include "Tiny/TinyMatrixOperators.h"
! #include <ios>
  
  //-----------------------------------------------------------------------------
  // Forward Declarations:
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/24 00:18:15
*************** 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