I am trying to "=default" my friend functions but keep getting the following error:
a4.cpp:180:17: error: declaration of ‘bool operator==(const playing_card&, const playing_card&) noexcept’ has a different exception specifier
180 | friend bool operator==(playing_card const&, playing_card const&) noexcept = default;
| ^~~~~~~~
In file included from a4.cpp:15:
a4-provided.hpp:64:6: note: from previous declaration ‘bool operator==(const playing_card&, const playing_card&)’
64 | bool operator==(playing_card const&, playing_card const&);
Line 64 is in a header file and is not meant to be changed. Line 180 is intended to be defaulted and is the line of code I am working on (can be changed).
I've tried looking into the function definitions and other instances of this happening but could not find a definitive answer. My guess is that I need to replace 'noexcept' with something else, but I'm not sure what it could be.