error C2679: binary '=': no operator found which takes a right-hand operand of type 'std::_Vector_iterator<std::_Vector_val<std::_Simple_types<LVecBase4f>>>' (or there is no acceptable conversion)
Doing the exact same thing with type LVecBase2i however works fine with no errors. Is it that the “=” operator isn’t implemented for a container with type LVecBase4f and so I’d have to use: PointerToArray<float> as a workaround to PointerToArray<LVecBase4f> , or am I missing something else instead?
PTA_LVecBase4f is actually defined as PointerToArray<UnalignedLVecBase4f> (for mostly historical reasons), so you’re using mismatching types. Either use one or the other.
Note that you can also use the C++11-style iteration syntax: