#ifndef LOG_HPP #define LOG_HPP #include #include template struct info { info(std::format_string fmt, Args &&...args, std::source_location const &loc = std::source_location::current()) { std::print(stderr, "[{}:{}]{}: ", loc.file_name(), loc.line(), loc.function_name()); std::println(stderr, fmt, std::forward(args)...); } }; template info(std::format_string fmt, Args &&...args) -> info; #endif