dbertoni    2002/09/20 21:48:10

  Modified:    c/src/PlatformSupport XalanArrayAllocator.hpp
  Log:
  Added needed typename keyword.
  
  Revision  Changes    Path
  1.2       +7 -5      xml-xalan/c/src/PlatformSupport/XalanArrayAllocator.hpp
  
  Index: XalanArrayAllocator.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/XalanArrayAllocator.hpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- XalanArrayAllocator.hpp   21 Sep 2002 01:22:11 -0000      1.1
  +++ XalanArrayAllocator.hpp   21 Sep 2002 04:48:10 -0000      1.2
  @@ -77,7 +77,7 @@
   
   #if defined(XALAN_NO_NAMESPACES)
        typedef vector<Type>                                    VectorType;
  -     typedef VectorType::size_type                   size_type;
  +     typedef typename VectorType::size_type  size_type;
        typedef pair<size_type, VectorType>             ListEntryType;
        typedef list<ListEntryType>                             ListType;
   #else
  @@ -87,6 +87,8 @@
        typedef std::list<ListEntryType>                        ListType;
   #endif
   
  +     typedef typename ListType::iterator             ListIteratorType;
  +
       // Default size for vector allocation.
        enum { eDefaultBlockSize = 500 };
   
  @@ -125,8 +127,8 @@
        void
        reset()
        {
  -             const ListType::iterator        theEnd = m_list.end();
  -             ListType::iterator      theCurrent = m_list.begin();
  +             const ListIteratorType  theEnd = m_list.end();
  +             ListIteratorType                theCurrent = m_list.begin();
   
                ListEntryType*  theEntry = 0;
   
  @@ -221,8 +223,8 @@
                }
                else
                {
  -                     const ListType::iterator        theEnd = m_list.end();
  -                     ListType::iterator      theCurrent = m_list.begin();
  +                     const ListIteratorType  theEnd = m_list.end();
  +                     ListIteratorType                theCurrent = 
m_list.begin();
   
                        ListEntryType*  theEntry = 0;
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to