Skip to content

Commit fea8aa0

Browse files
operator string_type()
1 parent 3014a1c commit fea8aa0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libs/openFrameworks/utils/ofFilesystem.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ class path {
3636
path& operator=(path&& other) noexcept = default;
3737

3838
operator std::filesystem::path() const { return path_; }
39-
operator std::string() { return path_.string(); } // should try catch on win
40-
operator const std::filesystem::path::value_type*() const { return path_.native().c_str(); }
39+
operator std::filesystem::path::string_type() const { return path_.string(); } // should try catch on win
4140
operator const std::filesystem::path::value_type*() const { return path_.c_str(); }
4241

4342
#if defined(TARGET_WIN32)

0 commit comments

Comments
 (0)