Hello all,
I have a C function
where x is a vector and which I know that doesn't modify x.Code:void foo (double * x, size_t s);
And I have a pointer
Is there a way to pass px to foo, without using const_cast, i.e. other thanCode:const double * px = A.get_ptr ();
?Code:double * qx = const_cast < double * > (px);
Thanks