@@ -1674,7 +1674,7 @@ struct property_cpp_function_sh_raw_ptr_member {
1674
1674
},
1675
1675
is_method (hdl));
1676
1676
}
1677
- return cpp_function ([pm]( const T &c) -> const D & { return c.*pm; }, is_method ( hdl) );
1677
+ return property_cpp_function_classic<T, D>:: readonly (pm, hdl);
1678
1678
}
1679
1679
1680
1680
template <typename PM, must_be_member_function_pointer<PM> = 0 >
@@ -1689,7 +1689,7 @@ struct property_cpp_function_sh_raw_ptr_member {
1689
1689
return cpp_function ([pm](T &c, D value) { c.*pm = std::forward<D>(std::move (value)); },
1690
1690
is_method (hdl));
1691
1691
}
1692
- return cpp_function ([pm](T &c, const D &value) { c.*pm = value; }, is_method ( hdl) );
1692
+ return property_cpp_function_classic<T, D>:: write (pm, hdl);
1693
1693
}
1694
1694
};
1695
1695
@@ -1714,7 +1714,7 @@ struct property_cpp_function_sh_member_held_by_value {
1714
1714
},
1715
1715
is_method (hdl));
1716
1716
}
1717
- return cpp_function ([pm]( const T &c) -> const D & { return c.*pm; }, is_method ( hdl) );
1717
+ return property_cpp_function_classic<T, D>:: readonly (pm, hdl);
1718
1718
}
1719
1719
1720
1720
template <typename PM, must_be_member_function_pointer<PM> = 0 >
@@ -1730,7 +1730,7 @@ struct property_cpp_function_sh_member_held_by_value {
1730
1730
},
1731
1731
is_method (hdl));
1732
1732
}
1733
- return cpp_function ([pm]( const T &c) -> const D & { return c.*pm; }, is_method ( hdl) );
1733
+ return property_cpp_function_classic<T, D>:: read (pm, hdl);
1734
1734
}
1735
1735
1736
1736
template <typename PM, must_be_member_function_pointer<PM> = 0 >
@@ -1739,7 +1739,7 @@ struct property_cpp_function_sh_member_held_by_value {
1739
1739
if (tinfo->holder_enum_v == holder_enum_t ::smart_holder) {
1740
1740
return cpp_function ([pm](T &c, const D &value) { c.*pm = value; }, is_method (hdl));
1741
1741
}
1742
- return cpp_function ([pm](T &c, const D &value) { c.*pm = value; }, is_method ( hdl) );
1742
+ return property_cpp_function_classic<T, D>:: write (pm, hdl);
1743
1743
}
1744
1744
};
1745
1745
@@ -1772,7 +1772,7 @@ struct property_cpp_function_sh_unique_ptr_member {
1772
1772
},
1773
1773
is_method (hdl));
1774
1774
}
1775
- return cpp_function ([pm]( const T &c) -> const D & { return c.*pm; }, is_method ( hdl) );
1775
+ return property_cpp_function_classic<T, D>:: read (pm, hdl);
1776
1776
}
1777
1777
1778
1778
template <typename PM, must_be_member_function_pointer<PM> = 0 >
0 commit comments