Closed janclod closed 2 years ago
The class player_state does not have an << operator yet.
player_state
<<
Please add one, start by adding this test to the player_state.cpp file inside the test_player_state() function.
player_state.cpp
test_player_state()
// operator<< { std::stringstream s; const player_state ps = player_state::active; s << ps; } { const player_state ps = player_state::active; std::cout << ps; }
You can get inspired on how to implement the operator from class sound_type sound_type.h
sound_type
sound_type.h
/// implement << operator std::ostream& operator << (std::ostream& os, const sound_type& sound);
sound_type.cpp
std::ostream& operator << (std::ostream& os, const sound_type& sound) { os << to_str(sound); return os; }
The class
player_state
does not have an<<
operator yet.Please add one, start by adding this test to the
player_state.cpp
file inside thetest_player_state()
function.You can get inspired on how to implement the operator from class
sound_type
sound_type.h
sound_type.cpp