-
April 28th, 2009, 07:25 PM
#1
error: call of overloaded âlinkedListType()â is ambiguous
class librarybookLista: public linkedListType<library>//compile error here
{
public:
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()â:
-
April 29th, 2009, 01:11 AM
#2
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|