[newfield_revision Patch] Add typename to NearestNeighbors.*

Jeffrey Oldham oldham at codesourcery.com
Thu Aug 16 00:38:29 UTC 2001


KCC 4.?0? needed these five typename's to compile.

2001-08-15  Jeffrey D. Oldham  <oldham at codesourcery.com>

        * NearestNeighbors.h (NearestNeighborClass): Add two typename's.
        * tests/NearestNeighbors.cpp (checkFieldOffset): Add three
        typename's.

Applied to      newfield_revision branch
Approved by     ???you???
Tested on       sequential Linux using gcc 3.0.1 by compiling Pooma library and
+NewField tests

Thanks,
Jeffrey D. Oldham
oldham at codesourcery.com
-------------- next part --------------
Index: NearestNeighbors.h
===================================================================
RCS file: /home/pooma/Repository/r2/src/NewField/Attic/NearestNeighbors.h,v
retrieving revision 1.1.2.5
diff -c -p -r1.1.2.5 NearestNeighbors.h
*** NearestNeighbors.h	2001/08/15 18:28:13	1.1.2.5
--- NearestNeighbors.h	2001/08/15 23:29:30
*************** public:
*** 96,103 ****
    typedef std::vector<FieldOffset_t> FieldOffset_vt;
    typedef std::vector<FieldOffsetList_t> Answer_t;
    typedef Centering<Dim> Center;
!   typedef Center::Positions Positions;
!   typedef Center::Position Position;
  
    // To compute the set of input values, we maintain a set of input
    // values and their differences from the output value.  In fact, we
--- 96,103 ----
    typedef std::vector<FieldOffset_t> FieldOffset_vt;
    typedef std::vector<FieldOffsetList_t> Answer_t;
    typedef Centering<Dim> Center;
!   typedef typename Center::Positions Positions;
!   typedef typename Center::Position Position;
  
    // To compute the set of input values, we maintain a set of input
    // values and their differences from the output value.  In fact, we
Index: tests/NearestNeighbors.cpp
===================================================================
RCS file: /home/pooma/Repository/r2/src/NewField/tests/Attic/NearestNeighbors.cpp,v
retrieving revision 1.1.2.3
diff -c -p -r1.1.2.3 NearestNeighbors.cpp
*** tests/NearestNeighbors.cpp	2001/08/15 18:09:46	1.1.2.3
--- tests/NearestNeighbors.cpp	2001/08/15 23:29:30
*************** inline bool
*** 69,77 ****
  checkFieldOffset(Pooma::Tester &tester,
  		 const char *testExplanation,
  		 const std::vector<FieldOffsetList<Dim> > &nn,
! 		 const std::vector<FieldOffsetList<Dim> >::size_type nnSize,
! 		 const std::vector<FieldOffsetList<Dim> >::size_type listNum,
! 		 const FieldOffsetList<Dim>::size_type listSize,
  		 const FieldOffset<Dim> &offset,
  		 const bool offsetPresent = true)
  {
--- 69,77 ----
  checkFieldOffset(Pooma::Tester &tester,
  		 const char *testExplanation,
  		 const std::vector<FieldOffsetList<Dim> > &nn,
! 		 const typename std::vector<FieldOffsetList<Dim> >::size_type nnSize,
! 		 const typename std::vector<FieldOffsetList<Dim> >::size_type listNum,
! 		 const typename FieldOffsetList<Dim>::size_type listSize,
  		 const FieldOffset<Dim> &offset,
  		 const bool offsetPresent = true)
  {


More information about the pooma-dev mailing list