15 lines
No EOL
304 B
C++
15 lines
No EOL
304 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <filesystem>
|
|
|
|
namespace file {
|
|
using Path = std::filesystem::path;
|
|
}
|
|
|
|
namespace console {
|
|
inline void internal_format(std::string& msg, const file::Path& arg) {
|
|
auto pos = msg.find_first_of("{}");
|
|
msg.replace(pos, 2, arg.string());
|
|
}
|
|
} |