Change std::exception to std::runtime_error for gcc compatibility.
This commit is contained in:
parent
6becdd4f6b
commit
26af9def75
@ -81,7 +81,7 @@ inline std::ofstream debugLogger;
|
||||
inline static void log(std::stringstream&str,std::source_location loc){
|
||||
debugLogger<<loc.file_name()<<"("<<loc.line()<<":"<<loc.column()<<") "<<loc.function_name()<<": "<<str.str()<<std::endl;
|
||||
std::cout<<loc.file_name()<<"("<<loc.line()<<":"<<loc.column()<<") "<<loc.function_name()<<": "<<str.str()<<std::endl;
|
||||
throw std::exception{std::format("{}({}:{}) {}: {}",loc.file_name(),loc.line(),loc.column(),loc.function_name(),str.str()).c_str()};
|
||||
throw std::runtime_error{std::format("{}({}:{}) {}: {}",loc.file_name(),loc.line(),loc.column(),loc.function_name(),str.str()).c_str()};
|
||||
}
|
||||
};
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user