Skip to content

Commit 73e78e0

Browse files
committed
Fix compile error on VS2019
error C2440: '<function-style-cast>': cannot convert from 'ghc::filesystem::path' to 'std::string'
1 parent 917bcc4 commit 73e78e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/xtensor-io/xio_disk_handler.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ namespace xt
6262
{
6363
if (!fs::is_directory(directory))
6464
{
65-
XTENSOR_THROW(std::runtime_error, "Path is not a directory: " + std::string(directory));
65+
XTENSOR_THROW(std::runtime_error, "Path is not a directory: " + std::string(directory.string()));
6666
}
6767
}
6868
else

0 commit comments

Comments
 (0)