Skip to content

Commit 86335ad

Browse files
comment about return types
1 parent 2c35f2f commit 86335ad

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libs/openFrameworks/utils/ofFilesystem.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
namespace of {
1010
namespace filesystem {
1111

12+
// general approach to return type:
13+
// - use `path` and path &` to wrap std:: return values
14+
// - use bool when bool (for self-documenting API)
15+
// - use (const) auto (inheriting from std:: implementation) for others
16+
1217
class path {
1318
private:
1419
std::filesystem::path path_; // simple composition

0 commit comments

Comments
 (0)