main()
{
   double **vals = NULL; 
   function(vals);
}

prototype :

//some other dll
void function(const double**);

it gives me error : cannot convert double ** to const double **.

and yes i dont want to put extra burden on the user side(in main function) to const cast the vals as it is not his responsibility..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.