error: no matching function for call to 'std::vector<...>
error: no matching function for call to 'std::vector<...>
- Subject: error: no matching function for call to 'std::vector<...>
- From: "Abin Thomas" <email@hidden>
- Date: Fri, 23 Jun 2006 15:58:25 +0530
Hi,
Below code is from one of the .h file in my project. I am using Xcode
2.2 with GCC 4.0 The following works in windows.
Any ideas why.
class MyElementObject;
class MyHuman
{
protected :
............................
vector< MyElementObject* > maInventory;
............................
public:
............................
............................
inline void RemoveInventoryObject( ULONG ulObject ) {
maInventory.erase(&maInventory.at( ulObject ) );
}
............................
............................
};
ERRORS :
/Volumes/HDD BACKUP/Capone/Capone/ACStateHuman.h:81: error: no
matching function for call to 'std::vector<ACElementObject*,
std::allocator<ACElementObject*> >::erase(ACElementObject**)'
/usr/include/c++/4.0.0/bits/vector.tcc:110: note: candidates are:
typename std::vector<_Tp, _Alloc>::iterator std::vector<_Tp,
_Alloc>::erase(__gnu_cxx::__normal_iterator<typename _Alloc::pointer,
std::vector<_Tp, _Alloc> >) [with _Tp = ACElementObject*, _Alloc =
std::allocator<ACElementObject*>]
/usr/include/c++/4.0.0/bits/vector.tcc:122: note:
typename std::vector<_Tp, _Alloc>::iterator std::vector<_Tp,
_Alloc>::erase(__gnu_cxx::__normal_iterator<typename _Alloc::pointer,
std::vector<_Tp, _Alloc> >, __gnu_cxx::__normal_iterator<typename
_Alloc::pointer, std::vector<_Tp, _Alloc> >) [with _Tp =
ACElementObject*, _Alloc = std::allocator<ACElementObject*>]
Thanking in advance for any help in this problem :)
Aby
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden