project can not compile, Tuple.h(311): Error C2672 : 'Invoke': no matching overloaded function found

i have located the code which cause this error

				WorkBenchVM->AddFieldValueChangedDelegate(UX2WorkBenchVM::FFieldNotificationClassDescriptor::ItemType,
					FFieldValueChangedDelegate::CreateLambda([this]
				{
// #if WITH_EDITOR
// 					GEngine->AddOnScreenDebugMessage(-1, 5.0F, FColor::Yellow, TEXT("WorkBenchVM Item change callback"));
// #endif
				}));

if i comment this line, compile will success

i want to listen to the vm’s property change in the code and doing some extra monitor logic.

it seems rather confusing since Tuple is stand c++ code, how can it can not find it’s function?

1 Like