• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
error: no matching function for call to 'std::vector<...>
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: error: no matching function for call to 'std::vector<...>
      • From: Steve Checkoway <email@hidden>
  • Prev by Date: XCode not universal binary yet?
  • Next by Date: Re: XCode not universal binary yet?
  • Previous by thread: Re: XCode not universal binary yet?
  • Next by thread: Re: error: no matching function for call to 'std::vector<...>
  • Index(es):
    • Date
    • Thread