I created an exception like this in my header_file run.h
struct invalid_assignment : std::runtime_error {
using std::runtime_error::runtime_error;
};
I dont understand the using std::runtime_error::runtime_error; part.
This looks unecessary.
From the C++ 17 Standard (10.3.3 The using declaration)
and
Thus this using declaration
introduces constructors of the class
std::runtime_errorin the classinvalid_assignmentas if they are constructors of the classinvalid_assignment.