Gobelijn API documentation
- generated for commit a0cbea7
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
}
main
int main()
Definition:
constcast.cpp:14
main
cpp
demo-const
constcast.cpp
Generated on Fri Feb 1 2019 09:33:32 for Gobelijn API documentation by
1.8.6