CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2009

    Unhappy error: call of overloaded ‚linkedListType()‚ is ambiguous

    class librarybookLista: public linkedListType<library>//compile error here
    bool bookSearch(string bTitle);
    //Function to search the list to see whether a
    //particular title, specified by the parameter title,
    //is in the store.
    //Postcondition: Returns true if the title is found;
    // otherwise, returns false.

    bool isbookAvailable(string bTitle);

    error from main program


    ibrarybooklinked.h:12: error: call of overloaded ‚linkedListType()‚ is ambiguous
    linkedlist.h:133: note: candidates are: linkedListType<Type>::linkedListType() [with Type = library]
    linkedlist.h:26: note: linkedListType<Type>::linkedListType(const Type&) [with Type = library]
    Pruebalibrarybooklinked.cpp: In function ‚int main()‚:

  2. #2
    Join Date
    Oct 2002
    Timisoara, Romania

    Re: error: call of overloaded ‚linkedListType()‚ is ambiguous

    There is not much I can deduce from your code. linkedListType is a template class. All the code for this class much go to a header, there should be no .cpp file.
    Marius Bancila
    Home Page
    My CodeGuru articles

    I do not offer technical support via PM or e-mail. Please use vbBulletin codes.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.