Skip to content

Commit aed3776

Browse files
committed
Add string() method as an alias for str(), which is defined in STL.
1 parent 84b7662 commit aed3776

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
@@ -225,6 +225,10 @@ class path {
225225
return oss.str();
226226
}
227227

228+
std::string string() const {
229+
return str();
230+
}
231+
228232
void set(const std::string &str, path_type type = native_path) {
229233
m_type = type;
230234
if (type == windows_path) {

0 commit comments

Comments
 (0)