Commit 40f30aad authored by Davis King's avatar Davis King

Made directory implicitly convertible to string.

parent 520b7c30
......@@ -250,6 +250,9 @@ namespace dlib
inline const std::string& full_name (
) const { return state.full_name; }
operator std::string (
) const { return full_name(); }
bool operator == (
const directory& rhs
) const;
......
......@@ -243,6 +243,9 @@ namespace dlib
inline const std::string& full_name (
) const { return state.full_name; }
operator std::string (
) const { return full_name(); }
bool operator == (
const directory& rhs
) const;
......
......@@ -398,6 +398,14 @@ namespace dlib
- the last character of #full_name() is NOT get_separator()
!*/
operator std::string (
) const;
/*!
ensures
- returns full_name()
(i.e. provides an implicit conversion to string from dlib::directory)
!*/
directory& operator= (
const directory& rhs
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment