Reputation: 1021
I have the following decleration in file Order.h (Holdng class Order) :
void removeFromAlbum(int barcode);
and the following Implementation line:
void Order::removeFromAlbum(int barcode)
But, when im trying to call the function with a different file, Store.cpp (Order.h was included) with the following line :
order.removeFromAlbum(barcode);
I get the following error from eclipse :
Invalid arguments '
Candidates are:
void removeFromAlbum(int)
'
Eclipse is well defined. Any suggestions ?
Edit : This is the function when all the magic happens :
void Store::removeFromOrder(int ordNum, int barcode)
barcode is an int.
Upvotes: 0
Views: 348
Reputation: 4335
EDIT: Before the OP's edit, it was impossible to tell if barcode
was an integer. This answer may, therefore, be invalid:
It looks like you're trying to call the function removeFromAlbum()
with a type that isn't an int
. Ensure that barcode
is actually cast as an int
.
Upvotes: 1