here are a few:
error C2784: 'bool std:: operator ==(const std::basic_string<_Elem,_Traits,_Alloc> &,const _Elem *)' : could not deduce template argument for 'const std::basic_string<_Elem,_Traits,_Ax> &' from 'main_savitch_3::bag::value_type'
error C2676: binary '==' : 'main_savitch_3::bag::value_type' does not define this operator or a conversion to a type acceptable to the predefined operator
error C2784: 'bool std:: operator !=(const std::basic_string<_Elem,_Traits,_Alloc> &,const std::basic_string<_Elem,_Traits,_Alloc> &)' : could not deduce template argument for 'const std::basic_string<_Elem,_Traits,_Ax> &' from 'main_savitch_3::bag::value_type'
NOTE: main_savitch_3 is a namespace the teacher wants us to work with.
Here are my overloaded ops to work with Die objects:
Code:
bool operator==(const Die & leftDie, const Die & rightDie)
{
return ( leftDie.getFace() == rightDie.getFace() );
}
bool operator!=(const Die & leftDie, const Die & rightDie)
{
return ( leftDie.getFace() != rightDie.getFace() );
}
At one point I made them member functions and they still didn't work, I'm completely lost right now. Thanks for whatever assistance you can provide.