Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LOG_GLOBAL_CATEGORY C3480 compilation error under MS VS 2019 #45

Open
arietto opened this issue Nov 18, 2022 · 1 comment
Open

LOG_GLOBAL_CATEGORY C3480 compilation error under MS VS 2019 #45

arietto opened this issue Nov 18, 2022 · 1 comment

Comments

@arietto
Copy link

arietto commented Nov 18, 2022

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

@arietto
Copy link
Author

arietto commented Nov 18, 2022

I suppose that the error is linked with these old changes 2ad8f4b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant