Skip to content

Commit bd56502

Browse files
committed
ADD String cast operator
1 parent 41c397d commit bd56502

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

filesystem/path.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,10 @@ class path {
220220
return oss.str();
221221
}
222222

223+
inline operator std::string(){
224+
return this->str();
225+
}
226+
223227
void set(const std::string &str, path_type type = native_path) {
224228
m_type = type;
225229
if (type == windows_path) {

0 commit comments

Comments
 (0)