generator: make dtor noexcept
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2021-12-11 20:43:48 +01:00
parent 55a19e6681
commit fb02ef9a23
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ Generator::Generator() /*noexcept*/ {
exit(1); exit(1);
} }
} }
Generator::~Generator() = default; Generator::~Generator() noexcept {};
void Generator::initialize_generator(){ void Generator::initialize_generator(){

View File

@ -12,7 +12,7 @@ namespace generator {
class Generator { class Generator {
public: public:
Generator(); // ad noexcept: perhaps _do_ throw* Generator(); // ad noexcept: perhaps _do_ throw*
~Generator(); ~Generator() noexcept;
/* n is the number of random bytes to generate */ /* n is the number of random bytes to generate */
auto generate_random_data(uint n) -> std::string; auto generate_random_data(uint n) -> std::string;