Fix ml::unknown_activation_type overriding what()

This commit is contained in:
Nikita Lisitsa 2022-01-21 12:10:51 +03:00
parent c6f01aad81
commit b47b6aa224
2 changed files with 2 additions and 2 deletions

View file

@ -19,7 +19,7 @@ namespace psemek::ml
struct unknown_activation_type struct unknown_activation_type
: std::exception : std::exception
{ {
char const * what() noexcept; char const * what() const noexcept override;
}; };
template <typename T> template <typename T>

View file

@ -3,7 +3,7 @@
namespace psemek::ml namespace psemek::ml
{ {
char const * unknown_activation_type::what() noexcept char const * unknown_activation_type::what() const noexcept
{ {
return "unknown activation type"; return "unknown activation type";
} }