Mingw complains about not being able to convert
std::filesystem::path::stem to std::string, so we'll need to
explicitly retrurn a string.
Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
// If cluster name is not set yet, use the prefix of the
// basename of configuration file as cluster name.
if (fs::path path{conffile}; path.extension() == ".conf") {
- return path.stem();
+ return path.stem().string();
} else {
// If the configuration file does not follow $cluster.conf
// convention, we do the last try and assign the cluster to