Skip to content

Commit def57cf

Browse files
committed
fix: support C++17
1 parent 9d0f3d3 commit def57cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/bh_python/register_axis.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ py::class_<A> register_axis(py::module& m, Args&&... args) {
155155

156156
.def_property_readonly(
157157
"size",
158-
&A::size,
158+
[](const A& ob){ return ob.size(); },
159159
"Returns the number of bins excluding under- and overflow")
160160

161161
.def_property_readonly(

0 commit comments

Comments
 (0)