Hello, I'm trying to compile my client, For a video game. But I get this error
c:\drsource stuff\46022362clientlatest\clientlatest\filemgr.h(18) : error C2275: 'std::iterator' : illegal use of this type as an expression
{
typedef map<int, T*> hash;
typedef map<int, int> check;
typedef map<int, T*>::iterator index;
And here is another one
c:\program files\microsoft visual studio 8\vc\include\xutility(486) : see declaration of 'std::iterator'
struct iterator
: public _Iterator_base
{ // base type for all iterator classes
typedef _Category iterator_category;
typedef _Ty value_type;
typedef _Diff difference_type;
typedef _Diff distance_type; // retained
typedef _Pointer pointer;
typedef _Reference reference;
};
template<class _Category,
class _Ty,
class _Diff = ptrdiff_t,
class _Pointer = _Ty *,
class _Reference = _Ty&,
class _Base_class = _Iterator_base>
struct _Iterator_with_base
: public _Base_class
c:\drsource stuff\46022362clientlatest\clientlatest\filemgr.h(158) : see reference to class template instantiation 'TFileMgr<T,N>' being compiled
private:
T* m_pBuffer;
check m_mpCheck;
hash m_mpBank;
int m_nError;
CHSEL_STREAM m_hsel;
};
c:\drsource stuff\46022362clientlatest\clientlatest\profiler.h(55) : warning C4244: 'return' : conversion from 'LONGLONG' to 'DWORD', possible loss of data
DWORD GetCurrent(){ return m_n64CounterEnd.QuadPart-m_n64CounterStart.QuadPart; };