Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Player* Set::getPlayer1() const{
- return getParent()->getPlayer1();
- }
- Match -> TreeNode<Set> -> BaseNode -> Container
- Player* Set::getPlayer1() const{
- return dynamic_cast<Match>(getParent())->getPlayer1();
- }
- error: cannot dynamic_cast ‘#‘obj_type_ref’ not supported by dump_expr#<expression error>((&((const Set*)this)->Set::<anonymous>))’ (of type ‘class BaseNode*’) to type ‘class Match’ (target is not pointer or reference)
- Player* Set::getPlayer1() const{
- return dynamic_cast<Match*>(getParent())->getPlayer1();
- }
Add Comment
Please, Sign In to add comment