Replies: 10 comments 2 replies
-
Hey @dimitre Would be up for trying this as the current approach has some edge cases which cause ambiguous errors. |
Beta Was this translation helpful? Give feedback.
-
Other suggestion : probabaly with addons breaking potential, but I think it worths: I had to modify my own addons to use ofToDataPath().string() |
Beta Was this translation helpful? Give feedback.
-
First draft |
Beta Was this translation helpful? Give feedback.
-
The only downside I can see to this approach:
is if someone puts Alternative:
with this usage
would be safer but it also feels much less clear.
could be an option but that sort of hides what it is. I guess the upside would be that it is discoverable in the OF code completion - but again might be confusing? One more that might be cleaner and lean into the of namespace we have been talking about:
Curious what people think. |
Beta Was this translation helpful? Give feedback.
-
I agree with |
Beta Was this translation helpful? Give feedback.
-
Yeah of::filesystem is nice. I can make some changes in the fork. |
Beta Was this translation helpful? Give feedback.
-
About this same subject, is this the right time to remove boost::filesystem ? |
Beta Was this translation helpful? Give feedback.
-
PR is now complete and on master, this is great, and it opens new possibilities of rethinking (simplifying, improving) pieces of OF like filePath object and projectGenerator. and I'll link this other one as some future ideas arised there too - #7368 |
Beta Was this translation helpful? Give feedback.
-
Lots of things were decided and merged after this discussion, happy to see filesystem in more places. projectGenerator now uses it extensively.
I'll be buying a second hand windows box just to test the windows related PRs and projectGenerator |
Beta Was this translation helpful? Give feedback.
-
Some ideas
both in OF and PG.
--- Past Stuff
Complete PR here #7110
I was wondering if instead of trying to insert filesystem namespace inside of std, how about we just use the
in ofConstants.h, one of this depending on defines
in ofFileUtils.h for example
of course I don't understand about std::filesystem so it can be a very bad idea, but would like to know your opinion
Beta Was this translation helpful? Give feedback.
All reactions