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

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

Language: Editor: Layout:
+ ] Compiler args + ] Show input
Compilation time: 1,3 sec, absolute service time: 1,34 sec 
edit mode |  history  | discussion
Error(s):
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