//**************************************** //const_cast remove cast or volatile //attribute from variables //worning removing attribute const could make //mistake in program idea //**************************************** #include using namespace std; //---------------------------------------- int editVal(const int *val){ int *p; p=const_cast(val); *p=*val*2; } //=========================================== int main(){ int val=10; cout<<"val before edit:... "<