|
jit_log(LogLevel::Debug, "%s%s{", rw ? "rw " : "ro ", member); |
I'm working with library that includes other library's headers and utilizes using namespace to bring names into the global scope, including LogLevel identifier, which causes the clash. I realize that the core of the problem is using namespace, but I think that writing code in headers is generally not advisable and if it's done, it should account to cases like mine too.
My suggestion would be to just specify full names for log levels.
drjit/include/drjit/traversable_base.h
Line 66 in f0b9cff
I'm working with library that includes other library's headers and utilizes
using namespaceto bring names into the global scope, includingLogLevelidentifier, which causes the clash. I realize that the core of the problem isusing namespace, but I think that writing code in headers is generally not advisable and if it's done, it should account to cases like mine too.My suggestion would be to just specify full names for log levels.