Replies: 3 comments 12 replies
|
100% agree that we need to solve this. I think the questions is how do we do this in the least breaking way? Proposal 3Figure out the common types that might break and put them in the off:: namespace? then instead of Downside is there would be a lot of edge cases we might miss. |
5 replies
Proposal 4we remove from ofMain.h and add in ofBaseApp.h |
7 replies
|
Okay so for now we have a fix which should in the least fix the std::byte conflict @oxillo was seeing on msys2. Thanks @oxillo @dimitre @artificiel for help on this! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello,
I've just spent some hours to investigate the conflict between std::byte and a typedef in rpcndr.h to finally find that it was caused by this
using namespace std;statement in ofMain.h.Generally, it's a bad practice to use "using namespace std;" but removing it will break a lot of existing code.
Proposal 1
have a new include file "ofAll.h" that includes all the of include files and keep ofMain.h that is only :
All new code should then include "ofAll.h" instead of "ofMain.h".
Proposal 2
guard the "using namespace std;" directive with a #ifndef or #ifdef.
All reactions