player.h:235:34: error: cannot call constructor ‘PlayerCast:
layerCast’ directly [-fpermissive]
cast = PlayerCast:
layerCast();
^
player.h:235:34: note: for a function-style cast, remove the redundant ‘:
layerCast’
In file included from actions.cpp:23:0:
player.h: In member function ‘bool Player::addCastBan(std::string)’:
player.h:252:46: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
cast.bans.push_back(CastBan::CastBan(n, ip));
^
player.h:252:46: note: for a function-style cast, remove the redundant ‘::CastBan’
player.h: In member function ‘bool Player::addCastMute(std::string)’:
player.h:273:47: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
cast.muted.push_back(CastBan::CastBan(n, ip));
^
player.h:273:47: note: for a function-style cast, remove the redundant ‘::CastBan’
In file included from house.h:27:0,
from beds.cpp:20:
player.h: In member function ‘void Player::kickCastViewers()’:
player.h:235:34: error: cannot call constructor ‘PlayerCast:
layerCast’ directly [-fpermissive]
cast = PlayerCast:
layerCast();
^
player.h:235:34: note: for a function-style cast, remove the redundant ‘:
layerCast’
In file included from house.h:27:0,
from beds.cpp:20:
player.h: In member function ‘bool Player::addCastBan(std::string)’:
player.h:252:46: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
cast.bans.push_back(CastBan::CastBan(n, ip));
^
player.h:252:46: note: for a function-style cast, remove the redundant ‘::CastBan’
player.h: In member function ‘bool Player::addCastMute(std::string)’:
player.h:273:47: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
cast.muted.push_back(CastBan::CastBan(n, ip));
^
player.h:273:47: note: for a function-style cast, remove the redundant ‘::CastBan’