void test()
{
Token test();
Actor* check;
check = dynamic_cast<Actor*>(test);
}
This method gives me the following error and underlines the test in the braces with red. The operand of a pointer dynamic_cast must be a pointer to a complete class type
How do i fix this? By the way Actor inherits from Token. Here's the code from Tokens header file.
#pragma once
#include <string>
class Token
{
public:
Token();
Token(int x, int y);
bool IsDead();
~Token();
char Symbol();
int X, Y;
bool clear;
bool indestructable;
int health;
int damage, rangeDamage;
//bool npc;
char character;
std::string ToString();
std::string name;
bool turnCompleted;
void SetProfile(char Name);
};