diff --git a/libs/global/KisLager.h b/libs/global/KisLager.h index e2dba924965..11d338b588d 100644 --- a/libs/global/KisLager.h +++ b/libs/global/KisLager.h @@ -65,9 +65,9 @@ constexpr auto scale_real_to_int = [] (qreal multiplier) { ); }; -template +template >> auto do_static_cast = lager::lenses::getset( - [] (Src value) { return static_cast(value); }, + [] (SrcConstRef value) { return static_cast(value); }, [] (Src, Dst value) { return static_cast(value); } );