Skip to main content
gamedev.net
šŸ”’ Locked

using this pointer...

Started by gimp Jul 12, 2000 at 6:30 PM 2 replies 250+ views
Original Post
gimp
gimp
    
class BaseMessageIndex
{
public:

protected:
	void RegisterID(MESSAGEID messageid)
	{
//		IDRegistry.insert((unsigned char)messageid,this);
	}

	void RegisterString(string &messagestring)
	{
		StringRegistry.insert(messagestring,this);
	}

	typedef map<unsigned char,	BaseMessageIndex*> IDRegistryMap;
	typedef map<string,			BaseMessageIndex*> StringRegistryMap;
	static IDRegistryMap		IDRegistry;
	static StringRegistryMap	StringRegistry;
};
    
When doing an insert with the ''this'' pointer I get : No constructor could take the source type, or constructor overload resolution was ambiguous Any hints on what this means? thanks chris
Chris Brodie
gimp
gimp
Syzygy, I think your right....Thats code does make the error go away. It''ll take a bit more time to create the test but I''m optimistic. Thank you very much... I''ll add that to my ''things to learn list''...

gimp
Chris Brodie

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.