witam,
nie dzialaja mi wyjatki w CLion
std::ifstream load_file(const std::string& path) // TODO: change arguments
{
std::ifstream input_file(path, std::ios::in);
if (!input_file.good())
throw std::exception("File could not be loaded");
return input_file;
}
no matching function for call to ‘std::exception::exception(const char [25])’
throw std::exception("File could not be loaded");