Run Code  | API  | Code Wall  | Users  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

Error with move capture of a const ref in a lambda function

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 1,3 sec, absolute service time: 1,34 sec 
fork mode |  history  | discussion
source_file.cpp(16): error C2440: '<function-style-cast>': cannot convert from 'const T' to 'f::<lambda_d4b6a3a24f0299f4cc75d33c5203573f>'
source_file.cpp(16): note: No constructor could take the source type, or constructor overload resolution was ambiguous