Const Casting

1
2
3
4
5
void Insert_Node(const Class_A & class_A)
{
    Class_A * data = NULL;
    data = &class_A;
}


Basically I want to know how I can get the data from the parameter into the variable data and how I would go about that. Just keep getting casting errors saying I can't convert from 'const Class_A* to Class_A*'.
const Class_A* data = &class_A;
Topic archived. No new replies allowed.