Re: "error: no matching function for call to " when overloadingmethod of base class

Discussion in 'C++' started by Old Wolf, Jan 28, 2009.

  1. Old Wolf

    Old Wolf Guest

    On Jan 29, 2:56 am, Sven <> wrote:
    > ../poollist.cc:480: error: no matching function for call to
    > ‘TPoolList::Append(char*)’
    > ../poollist.cc:367: note: candidates are: void TPoolList::Append
    > (PoolEntryKey_t&)
    >
    >
    > class  TPoolList : public TScrolledList {
    > public:
    >   void Append( PoolEntryKEy_t& );


    http://www.parashift.com/c -faq-lite/strange-inheritance.html#faq-23.9

    (except that the FAQ example has versions of Append
    that both match the parameter, so the wrong one is
    silently called; at least in your example you get a
    compiler error).
     
    Old Wolf, Jan 28, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Alf P. Steinbach
    Replies:
    6
    Views:
    549
    John Carson
    Sep 3, 2005
  2. =?ISO-8859-1?Q?Martin_J=F8rgensen?=
    Replies:
    5
    Views:
    1,303
    =?ISO-8859-1?Q?Martin_J=F8rgensen?=
    May 6, 2006
  3. Replies:
    3
    Views:
    376
  4. Hicham Mouline
    Replies:
    1
    Views:
    596
    Victor Bazarov
    Apr 20, 2009
  5. Karan Rajput
    Replies:
    2
    Views:
    145
    Abinoam Jr.
    Dec 22, 2010
Loading...

Share This Page