Last error in the Gunz Build

Results 1 to 3 of 3
  1. #1
    Member idohadar is offline
    MemberRank
    Jun 2010 Join Date
    52Posts

    Last error in the Gunz Build

    Just one error fro mthe gunz.exe 1.5 ..
    I'm using Visual Stido 2010 ..
    and, i had few error the i solve.
    But this error, i don't know what to do :P

    Lines:
    PHP Code:
    struct HREF
    {
        
    MRefCell*                pRefCell;
        
    MRefCell::iterator    RefIterator// Error here
    }; 
    Error & Warning:
    Code:
    3>f:\gunz\stable\cscommon\include\MGridMap.h(31): warning C4346: 'MGridMap<_T>::MRefCell::iterator' : dependent name is not a type
    3>          prefix with 'typename' to indicate a type
    3>          f:\gunz\stable\cscommon\include\MGridMap.h(29) : see reference to class template instantiation 'MGridMap<_T>::HREF' being compiled
    3>          f:\gunz\stable\cscommon\include\MGridMap.h(213) : see reference to class template instantiation 'MGridMap<_T>' being compiled
    3>f:\gunz\stable\cscommon\include\MGridMap.h(31): error C2146: syntax error : missing ';' before identifier 'RefIterator'
    3>f:\gunz\stable\cscommon\include\MGridMap.h(31): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int


  2. #2
    Novice Egoist is offline
    MemberRank
    Sep 2014 Join Date
    1Posts

    Re: Last error in the Gunz Build

    i have the same error right now and !

    hey, i think i solved xd

    Code:
    struct HREF
    {
    	MRefCell * pRefCell;
    	typename MRefCell::iterator RefIterator;
    };
    Last edited by Egoist; 19-09-14 at 03:13 AM.

  3. #3
    Wait wut PenguinGuy is offline
    MemberRank
    Apr 2010 Join Date
    United StatesLocation
    765Posts

    Re: Last error in the Gunz Build

    IteratorRefIterator needs a name, it itself is just a type. You can just comment it out iirc.



Advertisement