Skip to content

Call to jit_log causes name clashes #477

Description

@AshFungor

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions