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. |
Beta Was this translation helpful? Give feedback.
-
Proposal 4we remove from ofMain.h and add in ofBaseApp.h |
Beta Was this translation helpful? Give feedback.
-
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! |
Beta Was this translation helpful? Give feedback.
-
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.
Beta Was this translation helpful? Give feedback.
All reactions