Noesis 3.2.7 the Delegate operator += for lambdas is not compiled
Posted: 22 Jan 2025, 21:02
Hi,
In any example, let in (Commands sample)
It doesn't work in Delegate.h
In any example, let in (Commands sample)
Code: Select all
MainWindow()
{
Initialized() += MakeDelegate(this, &MainWindow::OnInitialized);
Initialized() += [](auto, const auto& e) { }; //C2679
InitializeComponent();
}
Code: Select all
/// Constructor from functor (lambda)
template<class F, class = EnableIf<IsInvocable<decltype(&F::operator()), Ret, Args...>::Result>> // !!!!!!!
Delegate(const F& f);