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. |
|
Other suggestion : probabaly with addons breaking potential, but I think it worths: I had to modify my own addons to use ofToDataPath().string() |
|
First draft |
|
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. |
|
I agree with |
|
Yeah of::filesystem is nice. I can make some changes in the fork. |
|
About this same subject, is this the right time to remove boost::filesystem ? |
|
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 |
|
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 |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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
All reactions