Run Code  | Code Wall  | Users  | Misc  | Feedback  | About  | Login  | Theme 

Error defining lambda inside namespace

Language: Editor: Layout:
+ ] Compiler args + ] Show input
Compilation time: 1,59 sec, absolute service time: 1,62 sec 
edit mode |  history  | discussion
Error(s):
source_file.cpp(17): error C2888: 'auto <lambda_6558e9e833d05fc20a49d4deb13e0020>::operator ()(const _T1 &) const': symbol cannot be defined within namespace 'test'
source_file.cpp(17): error C2888: 'auto <lambda_6558e9e833d05fc20a49d4deb13e0020>::<lambda_invoker_cdecl>(const _T1 &)': symbol cannot be defined within namespace 'test'
source_file.cpp(17): error C2888: '<lambda_6558e9e833d05fc20a49d4deb13e0020>::operator unknown-type (__cdecl *)(const _T1 &)(__cdecl *(void) noexcept const)(const _T1 &)': symbol cannot be defined within namespace 'test'
source_file.cpp(17): error C2888: 'auto <lambda_6558e9e833d05fc20a49d4deb13e0020>::<lambda_invoker_vectorcall>(const _T1 &)': symbol cannot be defined within namespace 'test'
source_file.cpp(17): error C2888: '<lambda_6558e9e833d05fc20a49d4deb13e0020>::operator unknown-type (__vectorcall *)(const _T1 &)(__vectorcall *(void) noexcept const)(const _T1 &)': symbol cannot be defined within namespace 'test'
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64