• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

ERROR COMPLING CAST - TFS 0.4 REV 3884

adriez

New Member
Joined
Aug 14, 2011
Messages
73
Reaction score
1
player.h:235:34: error: cannot call constructor ‘PlayerCast::playerCast’ directly [-fpermissive]
cast = PlayerCast::playerCast();
^
player.h:235:34: note: for a function-style cast, remove the redundant ‘::playerCast’
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::playerCast’ directly [-fpermissive]
cast = PlayerCast::playerCast();
^
player.h:235:34: note: for a function-style cast, remove the redundant ‘::playerCast’
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’
 
Back
Top