I have trouble using std::begin()
and std::end()
(from the iterator
library) with c-style array parameters.
void SetOr
void SetOrigin(const double i_point[3])
is as same as
void SetOrigin(const double i_point[])
or
void SetOrigin(const double *i_point)
So, std::begin
and std::end
can not accept it. In C++ you can not pass an array but as a pointer or reference. If it's a pointer then it doesn't carry any information of passed array.
Your alternatives are std::vector
or std::array
.