Closed TartanLlama closed 4 years ago
In vec::make:
vec::make
template<class... Ts> static auto make(Ts&&... args) -> vec { T data[] = { std::move(args)... }; return make(sizeof...(Ts), data); }
The std::move(args)... should be std::forward<Args>(args)..., otherwise it will move from non-const lvalue reference arguments.
std::move(args)...
std::forward<Args>(args)...
Closed by #120.
In
vec::make
:The
std::move(args)...
should bestd::forward<Args>(args)...
, otherwise it will move from non-const lvalue reference arguments.