dimanche 21 novembre 2021

Alias causing error: No matching function call

When I try to use an alias for a class, I get an error "No matching function call to 'Actor::Actor()'. Example below:

Actor a;  //This is the line that causes problems.
String actorName = a.getName();

Why might this issue be occurring? -- Thanks for your help in advance!

EDIT: I was able to answer my own question.

Aucun commentaire:

Enregistrer un commentaire