何らかの理由で、代入演算子を使用しようとするとバスエラーが発生します。
hand1 = hand2;
//overload assignment operator
Hand Hand::operator=(Hand other_hand)
{
if(&other_hand != this){
name = other_hand.name;
cards = other_hand.cards;
}
return *this;
}
エラーは return ステートメントの直後に発生します