fix for Visual Studio Build Tool 2022

This commit is contained in:
Hartmut Seichter 2023-10-11 14:08:19 +02:00
parent 97697d2d7a
commit ddb62cb395

View file

@ -108,7 +108,7 @@ struct BitmapIO::Impl {
// moving to C++23 this should be replaced with
// std::expected
auto data = read(asset_filepath.c_str());
auto data = read(asset_filepath.generic_string());
cache_[filename] = data;
}
@ -134,7 +134,7 @@ void BitmapIO::set_path(std::string_view path)
std::string BitmapIO::path() const
{
return impl_->asset_path_;
return impl_->asset_path_.generic_string();
}