c++ Programming Glossary: consttest
Question about const_cast in c++ http://stackoverflow.com/questions/3803521/question-about-const-cast-in-c a small programme trying to approve my thought. class ConstTest public void test printf calling non const version test const.. version test const function n int main int argc char argv ConstTest ct const ConstTest cct cct.test const_cast const ConstTest ct.. function n int main int argc char argv ConstTest ct const ConstTest cct cct.test const_cast const ConstTest ct .test it is wrong..
behaviour of const_cast http://stackoverflow.com/questions/9132315/behaviour-of-const-cast an expression of type Type .But consider this code class ConstTest private int year public ConstTest year 2007 void printYear const.. consider this code class ConstTest private int year public ConstTest year 2007 void printYear const int main ConstTest c c.printYear.. public ConstTest year 2007 void printYear const int main ConstTest c c.printYear return 0 void ConstTest printYear const ConstTest..
|