File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ namespace xt
9191 void resize (const S& shape, const strides_type& strides);
9292
9393 template <class S = shape_type>
94- void reshape (S&& shape, layout_type layout = base_type::static_layout);
94+ auto & reshape (S&& shape, layout_type layout = base_type::static_layout) & ;
9595
9696 layout_type layout () const ;
9797
@@ -205,7 +205,7 @@ namespace xt
205205 }
206206
207207 template <class T >
208- void default_initialize_impl (T& storage, std::false_type)
208+ void default_initialize_impl (T& /* storage*/ , std::false_type)
209209 {
210210 }
211211
@@ -407,7 +407,7 @@ namespace xt
407407
408408 template <class D >
409409 template <class S >
410- inline void pycontainer<D>::reshape(S&& shape, layout_type layout)
410+ inline auto & pycontainer<D>::reshape(S&& shape, layout_type layout) &
411411 {
412412 if (compute_size (shape) != this ->size ())
413413 {
@@ -437,6 +437,7 @@ namespace xt
437437 this ->ptr () = new_ptr;
438438 Py_XDECREF (old_ptr);
439439 this ->derived_cast ().init_from_python ();
440+ return *this ;
440441 }
441442
442443 /* *
You can’t perform that action at this time.
0 commit comments