Gobelijn API documentation  - generated for commit a0cbea7
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
constcast.cpp
Go to the documentation of this file.
1 
11 #include <iostream>
12 using namespace std;
13 
14 int main()
15 {
16  cout << __FUNCTION__ << " haha " << __PRETTY_FUNCTION__ << endl;
17  const int a = 3;
18  auto b = const_cast<int*>(&a);
19  *b = 5;
20  cout << "Value of a: " << a << endl;
21  cout << "Value of *b: " << *b << endl;
22  return 0;
23 }
int main()
Definition: constcast.cpp:14