use std::filesystem instead of std::experimental::filesystem
This commit is contained in:
@@ -111,11 +111,11 @@ namespace nana{ namespace paint
|
||||
return true;
|
||||
}
|
||||
|
||||
bool open(const std::experimental::filesystem::path& filename) override
|
||||
bool open(const std::filesystem::path& filename) override
|
||||
{
|
||||
std::ifstream ifs(filename.string(), std::ios::binary);
|
||||
|
||||
auto const bytes = static_cast<unsigned>(std::experimental::filesystem::file_size(filename));
|
||||
auto const bytes = static_cast<unsigned>(std::filesystem::file_size(filename));
|
||||
if (ifs && (bytes > static_cast<int>(sizeof(bitmap_file_header))))
|
||||
{
|
||||
std::unique_ptr<char[]> buffer{ new char[bytes] };
|
||||
|
||||
Reference in New Issue
Block a user