io: return path object from path_error accessor
This commit is contained in:
parent
c711d7e0f5
commit
e80c3c959c
4
io.cpp
4
io.cpp
@ -200,8 +200,8 @@ path_error::path_error (const std::experimental::filesystem::path &_path):
|
|||||||
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
const char*
|
const std::experimental::filesystem::path&
|
||||||
path_error::path (void) const noexcept
|
path_error::path (void) const noexcept
|
||||||
{
|
{
|
||||||
return m_path.string ().c_str ();
|
return m_path;
|
||||||
}
|
}
|
||||||
|
2
io.hpp
2
io.hpp
@ -105,7 +105,7 @@ namespace util {
|
|||||||
public:
|
public:
|
||||||
path_error (const std::experimental::filesystem::path &path);
|
path_error (const std::experimental::filesystem::path &path);
|
||||||
|
|
||||||
const char* path (void) const noexcept;
|
const std::experimental::filesystem::path& path (void) const noexcept;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
const std::experimental::filesystem::path m_path;
|
const std::experimental::filesystem::path m_path;
|
||||||
|
Loading…
Reference in New Issue
Block a user