Re: Deserialize JSON to C++ vector
Change your declaration to int. Enums create integers. Also, adjust your case statements to look like so.
int player::move_player(int move_by_value, int d)
{
switch (d)
case UP:
//...
}
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector