Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 No exact type-resolution of "Implement methods"

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
andre.horst Posted - Aug 30 2012 : 04:08:14 AM
Latest VAX, Win7, VC2008

Consider following example:

namespace a
{
	class CInterface
	{
	public:
		enum enFoo{};
		virtual void Foo( const enFoo ) = 0 ;
	} ;
}

namespace b
{
	class CImpl: public a::CInte[Implement Method]rface
	{
	public:
		virtual void Foo( const enFoo ) // Qualifier missing for enum
		{
			throw std::exception("The method or operation is not implemented.");
		}
	} ;
}

The enum type resolution is missing a namespace qualifier.
3   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Sep 03 2012 : 12:32:02 PM
Thank you for the additional information. I was able to reproduce the problem via moving the enum out of the class, directly into the namespace:

case=69047
andre.horst Posted - Sep 03 2012 : 01:37:20 AM
Ok, this example was not so smart... The enum is inherited so it is known.

Add an other enum just to the namespace "a" and add a parameter with this enum to the "CInterface::Foo" method. Than "Implement Interface" again in the "CImpl" class. Now the namespace qualifier is missing.

Btw: Did not tried typedefs or other classes in different namespaces as parameters, but I think this would make some trouble too. Also did not tried return-types.
feline Posted - Aug 30 2012 : 2:38:35 PM
I am seeing the same effect here, but this code is compiling just fine for me in VS2008, which was a surprise to me. Does this compile for you?

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000