6namespace fs = std::filesystem;
11 std::string Print_msg_with_loc(
const std::string& err,
const boost::source_location& loc)
13 auto filepath = fs::path{ loc.file_name() };
14 return fmt::format(fmt::emphasis::bold | fg(fmt::color::red),
16 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)