Archived
This forum has been archived. Please start a new discussion on GitHub.
Interface inheritance problem in VS 2005 EE
PeteH
in Help Center
I have an ice file like that:
I get a compile error stating that ThingTwoI is an abstract class if I do this:
If I add the following public member function to ThingTwoI, all works fine.
What am I doing wrong?
module gaga
{
interface ThingOne
{
string ID();
};
interface ThingTwo
{
string Name();
};
};
I get a compile error stating that ThingTwoI is an abstract class if I do this:
class ThingOneI : public gaga::ThingOne
{
public:
virtual ::std::string ID(const ::Ice::Current& iceCurrent = ::Ice::Current());
};
class ThingTwoI : public virtual gaga::ThingTwo, public virtual ThingOneI
{
public:
virtual ::std::string Name(const ::Ice::Current& iceCurrent = ::Ice::Current());
};
If I add the following public member function to ThingTwoI, all works fine.
virtual ::std::string ID(const ::Ice::Current& iceCurrent = ::Ice::Current())
{
return ThingOneI::ID(iceCurrent);
}
What am I doing wrong?
0
