Compile gives error C2555

pokemoenpokemoen Member Alex ManOrganization: NoneProject: SWCCG
Hello, I was wondering if someone could help me with this.
In VC7.1 I compile and get:
e:\Src\swccg\SWCCG\ICE\include\SWCCG.h(481): error C2555: 'SWCCG::Auth::ice_isA': overriding virtual function return type differs and is not covariant from 'Ice::Object::ice_isA'
e:\Src\swccg\SWCCG\ICE\include\SWCCG.h(481): error C2555: 'SWCCG::Auth::ice_isA': overriding virtual function return type differs and is not covariant from 'Ice::Object::ice_isA'
e:\Src\swccg\SWCCG\ICE\include\SWCCG.h(541): error C2555: 'SWCCG::Game::ice_isA': overriding virtual function return type differs and is not covariant from 'Ice::Object::ice_isA'
e:\Src\swccg\SWCCG\ICE\include\SWCCG.h(541): error C2555: 'SWCCG::Game::ice_isA': overriding virtual function return type differs and is not covariant from 'Ice::Object::ice_isA'
e:\Src\swccg\SWCCG\ICE\include\SWCCG.h(524): error C2555: 'SWCCG::Server::ice_isA': overriding virtual function return type differs and is not covariant from 'Ice::Object::ice_isA'
e:\Src\swccg\SWCCG\ICE\include\SWCCG.h(524): error C2555: 'SWCCG::Server::ice_isA': overriding virtual function return type differs and is not covariant from 'Ice::Object::ice_isA'

The code where the first error points to: (slice2cpp generated SWCCG.h)
class Auth : virtual public ::Ice::Object
{
public:

    virtual bool ice_isA(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) const;
    virtual ::std::vector< ::std::string> ice_ids(const ::Ice::Current& = ::Ice::Current()) const;
    virtual const ::std::string& ice_id(const ::Ice::Current& = ::Ice::Current()) const;
    static const ::std::string& ice_staticId();

    virtual ::Ice::Int create(const ::std::string&, const ::std::string&, const ::std::string&, const ::std::string&, const ::Ice::Current& = ::Ice::Current()) = 0;
    ::IceInternal::DispatchStatus ___create(::IceInternal::Incoming&, const ::Ice::Current&);

    virtual ::SWCCG::Player login(const ::std::string&, const ::std::string&, const ::Ice::Current& = ::Ice::Current()) = 0;
    ::IceInternal::DispatchStatus ___login(::IceInternal::Incoming&, const ::Ice::Current&);

    virtual ::SWCCG::Player get(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) = 0;
    ::IceInternal::DispatchStatus ___get(::IceInternal::Incoming&, const ::Ice::Current&);

    virtual ::IceInternal::DispatchStatus __dispatch(::IceInternal::Incoming&, const ::Ice::Current&);

    virtual void __write(::IceInternal::BasicStream*) const;
    virtual void __read(::IceInternal::BasicStream*, bool);
    virtual void __write(const ::Ice::OutputStreamPtr&) const;
    virtual void __read(const ::Ice::InputStreamPtr&, bool);
}; // <--- Error points here!

I upgraded to 2.1.2 (was on 2.0.0 first..) but that didn't help, so maybe I'm doing something wrong?
Searching the forum and net didn't help much. Any ideas?

Thanks in advance,
Alex

Comments

Sign In or Register to comment.