Commit 2e27a823 authored by charlie's avatar charlie
Browse files

Tidy fix: use move

parent 77ba9cb1
...@@ -63,7 +63,7 @@ struct shape ...@@ -63,7 +63,7 @@ struct shape
{ {
std::size_t min = 0; std::size_t min = 0;
std::size_t max = 0; std::size_t max = 0;
std::size_t opt = 1; std::size_t opt = 0;
dynamic_dimension() = default; dynamic_dimension() = default;
......
...@@ -48,7 +48,7 @@ struct shape_impl ...@@ -48,7 +48,7 @@ struct shape_impl
shape_impl(const std::vector<shape>& subs) : m_type(shape::tuple_type), m_shapes(subs) {} shape_impl(const std::vector<shape>& subs) : m_type(shape::tuple_type), m_shapes(subs) {}
explicit shape_impl(shape::dyn_data data) explicit shape_impl(shape::dyn_data data)
: m_type(data.t), m_dynamic(true), m_dyn_dims(data.dims) : m_type(data.t), m_dynamic(true), m_dyn_dims(std::move(data.dims))
{ {
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment