would sending a const to a function that gets a non const param be considered an error?

  c++, constants

let’s say we have this function

void  something(int a)
{}

and in main function we do this

int main()
{
 const int a=7;
something(a);
}

would that be considered an error?

Source: Windows Questions C++

LEAVE A COMMENT