Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Shadow pointer member variable
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64 #include <iostream> class MyClass { public: MyClass() : m_pVar(nullptr) { } void Run() { std::cout << "m_pVar= " << m_pVar<< std::endl; int* m_pVar = static_cast<int*>(malloc(4)); } private: int* m_pVar; }; int main() { MyClass m; m.Run(); m.Run(); }
run
|
edit
|
history
|
help
0
#7.2
Matrix_1
#27
Full System Specifications version 3
vector of bool
Error with move capture of a const ref in a lambda function
0004
LinkedList
xxx
1