On 30/07/2016 at 08:27, xxxxxxxx wrote:
Cinema 4D Version: R17
Platform: Mac ;
Language(s) : C++ ;
I'm wondering why on OSX the C4D SDK is doing "using namespace std;"? That is in c4d_string.h,
c4d_memory.h and c4d_basecontainer.h. I'd like to know the reasoning behind it, because currently
it requires me to refactor a lot of code that was developed on Windows that implemented its own
"thread" class, causing name ambiguation on OSX (compile error).
I'd personally consider it bad practice to do "using namespace" in a header file, but I'm 99% sure
that there's good reasoning behind it.
Update: The C4D SDK compiles without any problems after commenting out the "using namespace std;"
lines in the above three files (I verified that its the only ones). No I'm only 10% sure that there is good
reasoning behind it.