Skip to content

LOG_GLOBAL_CATEGORY C3480 compilation error under MS VS 2019 #45

Description

@arietto

Hello! I've tried to build console app with CuteLogger support.
I've added LOG_GLOBAL_CATEGORY macro under Q_OBJECT macro in QObject derived class declaration.
But MS VS 2019 has failed to compile it (error C3480).
a lambda capture must be a variable from an enclosing function scope
https://learn.microsoft.com/en-us/cpp/error-messages/compiler-errors-2/compiler-error-c3480?view=msvc-170

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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