GCC could not convert __b to ... error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello, 

I have the following error when compiling my c++ program using GCC.

This is my declaration

	typedef void (ParamRegion::*PFParamHandler)(short wParamKey, long lDataSize);
	typedef map<short, PFParamHandler> TParamHandlerTable;

The usage is 

        m_ParamHandlerTable[ 0 ] = LoadInfo;

where LoadInfo is declared as follows

void LoadInfo( short, long );

I am getting the following compilation errors:

could not convert '__b' to 'void(ParamRegion::*&)(short int, long int)'
in passing argument 3 of 'std::pair<_T1, _T2>::pair(const _T1&, const _T2&)[with _T1 = const
short int, _T2 = void(ParamRegion::*)(short int, long int)]

Please help me.
Thanks
Mubarak

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux