A
Arka
Hi,
I am trying to migrate a VS2003 VC++ Solution to VS2005.
I found a problem with the list template !
I declared my list like this:
class MyOwnTypeList : public list<MyOwnType:tr>
where MyOwnType:tr is declared like this:
class MyOwnType
{
public:
typedef Pointer<MyOwnType> Ptr;
....
}
The compiler makes an error on:
push_back( bst );
where bst is:
MyOwnType:tr &bst
The error is:
error C2664: 'std::allocator<_Ty>::construct' : cannot convert
parameter 1 from 'MyOwnType *' to 'Pointer<T> *'
I must add that like another post in this group the Pointer class has
an overloaded '&' operator!
What is wrong ???
Can someone help me ???
I am trying to migrate a VS2003 VC++ Solution to VS2005.
I found a problem with the list template !
I declared my list like this:
class MyOwnTypeList : public list<MyOwnType:tr>
where MyOwnType:tr is declared like this:
class MyOwnType
{
public:
typedef Pointer<MyOwnType> Ptr;
....
}
The compiler makes an error on:
push_back( bst );
where bst is:
MyOwnType:tr &bst
The error is:
error C2664: 'std::allocator<_Ty>::construct' : cannot convert
parameter 1 from 'MyOwnType *' to 'Pointer<T> *'
I must add that like another post in this group the Pointer class has
an overloaded '&' operator!
What is wrong ???
Can someone help me ???