c++ - Use of undefined identifier ? Pointer to function -
i have compile error , don't know why. here's header code :
file: authsession.hpp
class authsession : public player, public boost::enable_shared_from_this<authsession> { public: authsession(boost::asio::io_service& io_service, playerlist& player_list) : socket_(io_service), player_list_(player_list) { } ~authsession(){ } //some functions };
file : opcodes.hpp
#include "../player/authsession.hpp" struct opcodehandler { char const* name; sessionstatus status; void (authsession::*handler)(authmessage& recvpacket); //error here : undefined authsession };
my file large, removed unnecessary code.. can me?
Comments
Post a Comment