19namespace fs = std::filesystem;
23 std::string Print_msg_with_loc(
const std::string& err,
const boost::source_location& loc)
25 auto filepath = fs::path{ loc.file_name() };
26 return fmt::format(fmt::emphasis::bold | fg(fmt::color::red),
28 filepath.filename().string(),
logic_error(const std::string &err, const boost::source_location &loc=BOOST_CURRENT_LOCATION)
runtime_error(const std::string &err, const boost::source_location &loc=BOOST_CURRENT_LOCATION)