M
Marc W
Hello,
I am trying to write some code, I get a compiler error, but the help about
it is very limited. (I am working with MSVC++ 6.0.) Could you give me a hint
what is wrong here please?
MyImpl.h(11) : error C2437: 'OBV_Example' : already initialized
Compiler Error C2437
'identifier' : already initialized
The specified identifier was already initialized.
An object can be declared more than once but can be initialized only once.
class ExampleImpl : public virtual Sample::OBV_Example,
public virtual CORBA:efaultValueRefCountBase
{
public:
ExampleImpl(){}
ExampleImpl(CORBA::Long aLong) //this is line 11
: Sample::OBV_Example(aLong) {}
virtual ~ExampleImpl(){cout << "Example destructor has been caaLonged. MyVal
CORBA_ValueBase* _copy_value() {return new ExampleImpl(l());}
};
I am trying to write some code, I get a compiler error, but the help about
it is very limited. (I am working with MSVC++ 6.0.) Could you give me a hint
what is wrong here please?
MyImpl.h(11) : error C2437: 'OBV_Example' : already initialized
Compiler Error C2437
'identifier' : already initialized
The specified identifier was already initialized.
An object can be declared more than once but can be initialized only once.
class ExampleImpl : public virtual Sample::OBV_Example,
public virtual CORBA:efaultValueRefCountBase
{
public:
ExampleImpl(){}
ExampleImpl(CORBA::Long aLong) //this is line 11
: Sample::OBV_Example(aLong) {}
virtual ~ExampleImpl(){cout << "Example destructor has been caaLonged. MyVal
CORBA_ValueBase* _copy_value() {return new ExampleImpl(l());}
};